diff --git a/modules/system/wifi.nix b/modules/system/wifi.nix index fe416a1..d9428ce 100644 --- a/modules/system/wifi.nix +++ b/modules/system/wifi.nix @@ -41,6 +41,14 @@ in { (mkIf (cfg.enable && cfg.system == "networkmanager") { networking.networkmanager.enable = true; networking.networkmanager.wifi.powersave = true; + networking.networkmanager.extraConfig = '' + # The number of times a connection activation should be automatically tried + # before switching to another one. This value applies only to connections + # that can auto-connect and have a connection. autoconnect-retries property set to -1. + # If not specified, connections will be tried 4 times. + # Setting this value to 1 means to try activation once, without retry. + autoconnect-retries-default=999 + ''; }) (mkIf (cfg.enable && cfg.configurationFile != null) {