From 8c42cc377c58a033ca7e94e400c3de8987e6cbae Mon Sep 17 00:00:00 2001 From: Guilhem Saurel Date: Mon, 15 Sep 2025 12:20:39 +0200 Subject: [PATCH] clanServices/wifi: allow WPA3 and other key management settings --- clanServices/wifi/default.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/clanServices/wifi/default.nix b/clanServices/wifi/default.nix index 897a1802b..b875bb293 100644 --- a/clanServices/wifi/default.nix +++ b/clanServices/wifi/default.nix @@ -29,6 +29,15 @@ in default = true; description = "Automatically try to join this wifi network"; }; + keyMgmt = lib.mkOption { + type = lib.types.str; + default = "wpa-psk"; + description = '' + Key management used for the connection. + One of "none" (WEP or no password protection), "ieee8021x" (Dynamic WEP), "owe" (Opportunistic Wireless Encryption), "wpa-psk" (WPA2 + WPA3 personal), + "sae" (WPA3 personal only), "wpa-eap" (WPA2 + WPA3 enterprise) or "wpa-eap-suite-b-192" (WPA3 enterprise only). + ''; + }; }; } ) @@ -80,7 +89,7 @@ in wifi.mode = "infrastructure"; wifi.ssid = "$ssid_${name}"; wifi-security.psk = "$pw_${name}"; - wifi-security.key-mgmt = "wpa-psk"; + wifi-security.key-mgmt = networkCfg.keyMgmt; } );