From a5ea612021325ade3146a772177e427091458a0f Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Wed, 16 Dec 2020 22:47:38 +0100 Subject: [PATCH] networkmanager: fixing reconnect --- modules/system/wifi.nix | 8 ++++++++ 1 file changed, 8 insertions(+) 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) {