iwd: add AutoConnect option

This commit is contained in:
Guilhem Saurel
2024-10-02 17:36:10 +02:00
committed by Mic92
parent b956b94039
commit 147cb0b002

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";
};
}; };
} }
) )