fix: misbehaving wifi module
This commit is contained in:
parent
e953fab0b1
commit
58b24565ee
1 changed files with 3 additions and 3 deletions
|
@ -33,17 +33,17 @@ in {
|
|||
|
||||
config = mkMerge [
|
||||
|
||||
(mkIf (cfg.system == "wpa_supplicant") {
|
||||
(mkIf (cfg.enable && cfg.system == "wpa_supplicant") {
|
||||
networking.wireless.enable = true;
|
||||
networking.wireless.interfaces = cfg.interfaces;
|
||||
})
|
||||
|
||||
(mkIf (cfg.system == "networkmanager") {
|
||||
(mkIf (cfg.enable && cfg.system == "networkmanager") {
|
||||
networking.networkmanager.enable = true;
|
||||
networking.networkmanager.wifi.powersave = true;
|
||||
})
|
||||
|
||||
(mkIf (cfg.configurationFile != null) {
|
||||
(mkIf (cfg.enable && cfg.configurationFile != null) {
|
||||
environment.etc."wpa_supplicant.conf".source = cfg.configurationFile;
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in a new issue