40 lines
842 B
Nix
40 lines
842 B
Nix
{
|
|
config,
|
|
inputs,
|
|
...
|
|
}: {
|
|
sops.secrets."wireless.env" = {
|
|
sopsFile = ../../secrets/wifi.yaml;
|
|
};
|
|
sops.age.keyFile = /home/max/.config/sops/age/keys.txt;
|
|
networking.wireless = {
|
|
enable = true;
|
|
userControlled.enable = true;
|
|
environmentFile = config.sops.secrets."wireless.env".path;
|
|
networks = {
|
|
"@home_uuid@" = {
|
|
psk = "@home_psk@";
|
|
priority = 10;
|
|
};
|
|
"@par_uuid@" = {
|
|
psk = "@par_psk@";
|
|
priority = 10;
|
|
};
|
|
"@luhbots_uuid@" = {
|
|
psk = "@luhbots_psk@";
|
|
priority = 5;
|
|
};
|
|
eduroam = {
|
|
auth = ''
|
|
key_mgmt=WPA-EAP
|
|
eap=PWD
|
|
identity="@eduroam_ident@"
|
|
password="@eduroam_psk@"
|
|
'';
|
|
priority = 0;
|
|
};
|
|
};
|
|
};
|
|
users.extraUsers.max.extraGroups = ["wheel"];
|
|
}
|