Skip to content

Commit 195396c

Browse files
committed
alcor: init
1 parent 057458e commit 195396c

File tree

7 files changed

+79
-4
lines changed

7 files changed

+79
-4
lines changed

.github/workflows/build.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ jobs:
5959
with:
6060
file: "result/*squashfs*.img.gz;result/profiles.json;result/sha256sums"
6161
overwrite: true
62-
update_latest_release: true
63-
default_release_name: "${{ matrix.router }}"
64-
update_release_body: "Weekly build: ${{ needs.setup.outputs.date }}"
62+
update_latest_release: false
63+
default_release_name: "Weekly build: ${{ matrix.router }}"
64+
update_release_body: "${{ needs.setup.outputs.date }}"
65+
draft: false

bundles/celluar.nix

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{ ... }:
2+
3+
[
4+
"luci-app-sms-tool-js"
5+
"luci-i18n-sms-tool-js-zh-cn"
6+
"luci-proto-modemmanager"
7+
"luci-proto-3g"
8+
"luci-proto-qmi"
9+
10+
"comgt-ncm"
11+
"qmi-utils"
12+
13+
"kmod-usb-net-cdc-mbim"
14+
"kmod-usb-net-cdc-ether"
15+
"kmod-usb-net-cdc-ncm"
16+
"kmod-usb-net-huawei-cdc-ncm"
17+
"kmod-usb-net-qmi-wwan"
18+
"kmod-usb-serial-option"
19+
"kmod-usb-serial-qualcomm"
20+
]

bundles/mwan.nix

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{ ... }:
2+
3+
[
4+
"luci-app-mwan3"
5+
"luci-i18n-mwan3-zh-cn"
6+
]

bundles/nut.nix

+1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@
1414
"nut-driver-richcomm_usb"
1515
"nut-driver-usbhid-ups"
1616
"nut-driver-apcupsd-ups"
17+
"nut-avahi-service"
1718
]

bundles/usb.nix

+12
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,21 @@
1212
"exfat-fsck"
1313
"exfat-mkfs"
1414
"kmod-fs-exfat"
15+
1516
"kmod-usb-storage"
1617
"kmod-usb-storage-extras"
1718
"kmod-usb-storage-uas"
1819
"kmod-usb-serial"
20+
21+
"kmod-usb-acm"
22+
"kmod-usb-core"
1923
"kmod-usb-hid"
24+
"kmod-usb-ehci"
25+
"kmod-usb-ohci"
26+
"kmod-usb-uhci"
27+
"kmod-usb-wdm"
28+
29+
"kmod-usb-net"
30+
"kmod-usb-net-ipheth"
31+
"kmod-usb-net-rndis"
2032
]

routers/alcor.nix

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# GL.iNet XE3000
2+
{ pkgs, lib, build, bundles, ... }:
3+
4+
let
5+
baremetal = true;
6+
target = "mediatek";
7+
variant = "filogic";
8+
release = "snapshot";
9+
packageLists = builtins.mapAttrs
10+
(k: v: v { inherit lib release target variant baremetal; })
11+
bundles;
12+
in
13+
build {
14+
inherit release target variant;
15+
profile = "glinet_gl-xe3000";
16+
packages = with packageLists;
17+
apps ++ celluar ++ common ++ mwan ++ collectd ++ proxy ++ usb ++ [
18+
"-libustream-openssl"
19+
"luci-ssl"
20+
21+
"mt7981-wo-firmware"
22+
];
23+
24+
files = pkgs.runCommand "image-files" { } ''
25+
mkdir -p $out/etc/uci-defaults
26+
cat > $out/etc/uci-defaults/99-custom <<EOF
27+
uci -q batch << EOI
28+
set network.lan.ipaddr=192.168.5.1
29+
commit
30+
EOI
31+
EOF
32+
'';
33+
}

routers/lumidouce.nix

+3-1
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@ build {
1616
rootFsPartSize = 896;
1717
packages = with packageLists;
1818
apps ++ common ++ collectd ++ proxy ++ usb ++ [
19-
"coturn"
2019
"-libustream-openssl"
2120
"luci-ssl"
21+
22+
"coturn"
23+
2224
"intel-microcode"
2325
"iucode-tool"
2426
"kmod-igc"

0 commit comments

Comments
 (0)