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