summaryrefslogtreecommitdiff
path: root/ext/openwrt/turret/default.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2024-03-09 18:32:41 -0500
committerseth <[email protected]>2024-03-09 18:33:10 -0500
commitcb951dba532fe4518da5dbf876096968afab0c9a (patch)
treead6425aa4956a2add835469e4fcaee1e7423565e /ext/openwrt/turret/default.nix
parentc76dc8f7aeb99be22d2b256c12076a177f659321 (diff)
openwrt/turret: use new module and uci for everything
Diffstat (limited to 'ext/openwrt/turret/default.nix')
-rw-r--r--ext/openwrt/turret/default.nix32
1 files changed, 0 insertions, 32 deletions
diff --git a/ext/openwrt/turret/default.nix b/ext/openwrt/turret/default.nix
deleted file mode 100644
index 90ec750..0000000
--- a/ext/openwrt/turret/default.nix
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- pkgs,
- openwrt-imagebuilder,
- ...
-}: let
- wrtProfiles = openwrt-imagebuilder.lib.profiles {
- inherit pkgs;
- release = "22.03.3";
- };
-
- image =
- wrtProfiles.identifyProfile "netgear_wac104"
- // {
- packages = ["https-dns-proxy"];
-
- files = pkgs.runCommand "image-files" {} ''
- mkdir -p $out/etc/uci-defaults
-
- cat > $out/etc/uci-defaults/99-custom <<EOF
- uci -q batch << EOI
- set system.@system[0].hostname='turret'
- commit
- EOI
- EOF
-
- # copy custom files
- cp -fr ${./files}/* $out/
- chmod 0644 $out/etc/{config,dropbear}/*
- '';
- };
-in
- openwrt-imagebuilder.lib.build image