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