From f5681326f3c01e52cbf6cbc625224c1a95f8fe17 Mon Sep 17 00:00:00 2001 From: seth Date: Tue, 21 Mar 2023 22:57:19 -0400 Subject: add config for turret (openwrt router) --- hosts/turret/default.nix | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 hosts/turret/default.nix (limited to 'hosts/turret/default.nix') diff --git a/hosts/turret/default.nix b/hosts/turret/default.nix new file mode 100644 index 0000000..faac3d2 --- /dev/null +++ b/hosts/turret/default.nix @@ -0,0 +1,38 @@ +{ + 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 <