wifi: Add wifiInterface

This commit is contained in:
PapaTutuWawa 2021-09-04 20:39:04 +02:00
parent cb14a51d44
commit 5250af0db2
2 changed files with 4 additions and 0 deletions

Binary file not shown.

View File

@ -6,6 +6,7 @@ config: {
userName userName
, hostName , hostName
, wireless ? false , wireless ? false
, wifiInterface ? ""
, overlays ? [] , overlays ? []
, hardwareImports ? [ "generic" ] , hardwareImports ? [ "generic" ]
, programImports ? [] , programImports ? []
@ -33,6 +34,7 @@ let
(./users + "/${userName}.nix") (./users + "/${userName}.nix")
] ++ (map (item: ./programs + "/${item}") programImports) ] ++ (map (item: ./programs + "/${item}") programImports)
++ (map (item: ./hardware + "/${item}.nix") hardwareImports) ++ (map (item: ./hardware + "/${item}.nix") hardwareImports)
++ lib.optional wireless ./hardware/wifi.nix
++ (map (item: ./. + "/${item}") extraImports); ++ (map (item: ./. + "/${item}") extraImports);
home-manager.useGlobalPkgs = true; home-manager.useGlobalPkgs = true;
@ -163,6 +165,8 @@ let
bluetooth = lib.mkIf wireless { bluetooth = lib.mkIf wireless {
enable = true; enable = true;
}; };
wifiInterface = lib.mkIf wireless wifiInterface;
}; };
boot = { boot = {