Merge pull request 'iwd: add AutoConnect option' (#2194) from nim65s/clan-core:autoconnect into main

Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/2194
This commit is contained in:
Mic92
2024-10-04 15:39:13 +00:00

View File

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