Add eduroam wlan

This commit is contained in:
SebastianStork 2024-09-10 15:32:56 +02:00
parent b14db2b903
commit bb3c37d0c9
2 changed files with 21 additions and 2 deletions

View file

@ -27,6 +27,23 @@ in
};
environment.systemPackages = [ pkgs.iwgtk ];
sops = {
secrets."wlan/eduroam/password" = { };
templates."iwd/eduroam.8021x".content = ''
[Security]
EAP-Method=PEAP
EAP-Identity=anonymous@h-da.de
EAP-PEAP-Phase2-Method=MSCHAPV2
EAP-PEAP-Phase2-Identity=sebastian.stork@stud.h-da.de
EAP-PEAP-Phase2-Password=${config.sops.placeholder."wlan/eduroam/password"}
'';
};
systemd.tmpfiles.rules = [
"C /var/lib/iwd/eduroam.8021x - - - - ${config.sops.templates."iwd/eduroam.8021x".path}"
];
}
(lib.mkMerge (