pkgs/openwrt: init modelPackages with "tplink_archer-c7-v5"
This commit is contained in:
parent
363386b5d8
commit
b32f23c318
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue