pkgs/openwrt: init modelPackages with "tplink_archer-c7-v5"

This commit is contained in:
Astro 2022-06-23 16:58:17 +02:00
parent 363386b5d8
commit b32f23c318
1 changed files with 8 additions and 1 deletions

View File

@ -4,6 +4,13 @@ let
inherit (self.lib) config;
pkgs = nixpkgs.legacyPackages.${system};
uciConfig = hostName: import ./uci-config.nix { inherit self pkgs hostName; };
modelPackages = {
"tplink_archer-c7-v5" = [
"-kmod-ath10k-ct" "-ath10k-firmware-qca988x-ct"
"kmod-ath10k" "ath10k-firmware-qca988x"
];
};
in
{
sshScript = hostName: ''
@ -62,7 +69,7 @@ in
# monitoring
"collectd" "collectd-mod-interface" "collectd-mod-load"
"collectd-mod-cpu" "collectd-mod-iwinfo" "collectd-mod-network"
];
] ++ modelPackages.${model} or [];
disabledServices = [ "dnsmasq" "uhttpd" ];
files = pkgs.runCommandNoCC "image-files" {} ''
mkdir -p $out/etc/uci-defaults