diff --git a/clanModules/iwd/roles/default.nix b/clanModules/iwd/roles/default.nix index 32158e143..793386ed3 100644 --- a/clanModules/iwd/roles/default.nix +++ b/clanModules/iwd/roles/default.nix @@ -14,6 +14,8 @@ let generator.prompt = "Wifi password for '${value.ssid}'"; generator.script = '' config=" + [Settings] + AutoConnect=${if value.AutoConnect then "true" else "false"} [Security] Passphrase=$prompt_value " @@ -35,6 +37,11 @@ in default = name; description = "The name of the wifi network"; }; + AutoConnect = lib.mkOption { + type = lib.types.bool; + default = true; + description = "Automatically try to join this wifi network"; + }; }; } )