diff options
| author | seth <[email protected]> | 2023-04-20 22:10:21 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2023-04-20 22:13:45 -0400 |
| commit | eb3f9e87435be5941278d819351bac0ece172051 (patch) | |
| tree | d32d347bcba4760dcf1b3b8d11e6accbde12f49c /hosts/turret/default.nix | |
| parent | 65e26c34990fa57e305093572ea3a9596bc45b38 (diff) | |
move to my external lib
Diffstat (limited to 'hosts/turret/default.nix')
| -rw-r--r-- | hosts/turret/default.nix | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/hosts/turret/default.nix b/hosts/turret/default.nix deleted file mode 100644 index faac3d2..0000000 --- a/hosts/turret/default.nix +++ /dev/null @@ -1,38 +0,0 @@ -{ - pkgs, - openwrt-imagebuilder, - ... -}: let - inherit (pkgs) runCommand; - inherit (pkgs.stdenv) mkDerivation; - inherit (openwrt-imagebuilder.lib) build profiles; - wrtProfiles = profiles { - inherit pkgs; - release = "22.03.3"; - }; - config = mkDerivation { - name = "openwrt-config-files"; - src = ./files; - installPhase = '' - mkdir -p $out - cp -r * $out/ - ''; - }; - image = - wrtProfiles.identifyProfile "netgear_wac104" - // { - packages = ["https-dns-proxy"]; - - files = 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 - cp -fr ${config}/etc/* $out/etc/ - ''; - }; -in - build image |
