inventory/wifi: retry autoconnect and auth indefinitely
Set connection.autoconnect-retries=0 and connection.auth-retries=0 on the NetworkManager profiles generated by the clan wifi module for buna, so a flaky AP or slow auth never leaves the connection permanently blocked.
This commit is contained in:
+23
-5
@@ -517,15 +517,33 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
wifi = {
|
wifi =
|
||||||
|
let
|
||||||
|
networks = {
|
||||||
|
home = { };
|
||||||
|
glom = { };
|
||||||
|
};
|
||||||
|
in
|
||||||
|
{
|
||||||
module.name = "wifi";
|
module.name = "wifi";
|
||||||
module.input = "clan-community";
|
module.input = "clan-community";
|
||||||
|
|
||||||
roles.default = {
|
roles.default = {
|
||||||
machines."buna" = {
|
machines."buna".settings = { inherit networks; };
|
||||||
settings.networks.home = { };
|
|
||||||
settings.networks.glom = { };
|
extraModules = [
|
||||||
};
|
(
|
||||||
|
{ lib, ... }:
|
||||||
|
{
|
||||||
|
# profile names match the network attr names above;
|
||||||
|
# 0 = retry forever for both (defaults: 4 autoconnect attempts, 3 auth attempts)
|
||||||
|
networking.networkmanager.ensureProfiles.profiles = lib.mapAttrs (_: _: {
|
||||||
|
connection.autoconnect-retries = 0;
|
||||||
|
connection.auth-retries = 0;
|
||||||
|
}) networks;
|
||||||
|
}
|
||||||
|
)
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user