networkmanager: fixing reconnect

This commit is contained in:
Ingolf Wagner 2020-12-16 22:47:38 +01:00
parent a70ef69f02
commit a5ea612021
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B

View file

@ -41,6 +41,14 @@ in {
(mkIf (cfg.enable && cfg.system == "networkmanager") { (mkIf (cfg.enable && cfg.system == "networkmanager") {
networking.networkmanager.enable = true; networking.networkmanager.enable = true;
networking.networkmanager.wifi.powersave = 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) { (mkIf (cfg.enable && cfg.configurationFile != null) {