From 0a582b523fd1a53cb1f15b31d1b54a49e8d65f28 Mon Sep 17 00:00:00 2001 From: seth Date: Tue, 31 Oct 2023 03:26:11 -0400 Subject: turret: update config files & improve derivation --- systems/turret/default.nix | 24 ++- systems/turret/files/etc/config/firewall | 258 ++++++++++++------------------- systems/turret/files/etc/config/network | 1 + systems/turret/files/etc/config/wireless | 12 +- 4 files changed, 111 insertions(+), 184 deletions(-) (limited to 'systems') diff --git a/systems/turret/default.nix b/systems/turret/default.nix index faac3d2..90ec750 100644 --- a/systems/turret/default.nix +++ b/systems/turret/default.nix @@ -3,36 +3,30 @@ openwrt-imagebuilder, ... }: let - inherit (pkgs) runCommand; - inherit (pkgs.stdenv) mkDerivation; - inherit (openwrt-imagebuilder.lib) build profiles; - wrtProfiles = profiles { + wrtProfiles = openwrt-imagebuilder.lib.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" {} '' + files = pkgs.runCommand "image-files" {} '' mkdir -p $out/etc/uci-defaults + cat > $out/etc/uci-defaults/99-custom <