networkmanager: fixing reconnect
This commit is contained in:
parent
a70ef69f02
commit
a5ea612021
1 changed files with 8 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue