wifi: Add wifiInterface
This commit is contained in:
parent
cb14a51d44
commit
5250af0db2
Binary file not shown.
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user