diff --git a/nixos/modules/services/networking/networkmanager.nix b/nixos/modules/services/networking/networkmanager.nix index 35d8f370eae9..b6253a129e80 100644 --- a/nixos/modules/services/networking/networkmanager.nix +++ b/nixos/modules/services/networking/networkmanager.nix @@ -144,7 +144,9 @@ in { meta = { - maintainers = teams.freedesktop.members; + maintainers = teams.freedesktop.members ++ [ + lib.maintainers.frontear + ]; }; ###### interface @@ -684,13 +686,7 @@ in networkmanager.connectionConfig = { "ethernet.cloned-mac-address" = cfg.ethernet.macAddress; "wifi.cloned-mac-address" = cfg.wifi.macAddress; - "wifi.powersave" = - if cfg.wifi.powersave == null then - null - else if cfg.wifi.powersave then - 3 - else - 2; + "wifi.powersave" = lib.mkIf (cfg.wifi.powersave != null) (if cfg.wifi.powersave then 3 else 2); }; } ];