diff --git a/flake-parts/router.nix b/flake-parts/router.nix new file mode 100644 index 0000000..17aba27 --- /dev/null +++ b/flake-parts/router.nix @@ -0,0 +1,40 @@ +{ + inputs, + self, + lib, + ... +}: { + imports = []; + + perSystem = { + self', + pkgs, + lib, + system, + inputs', + ... + }: let + profiles = inputs.openwrt-imagebuilder.lib.profiles {inherit pkgs;}; + + config = + profiles.identifyProfile "asus_rt-ac58u" + // { + packages = ["tcpdump"]; + disabledServices = ["dnsmasq"]; + + files = pkgs.runCommand "image-fileS" {} '' + mkdir -p $out/etc/uci-defaults + cat > $out/etc/uci-defaults/99-custom <