network: Make sure charlotte can control wpa_supplicant

This commit is contained in:
Charlotte Van Petegem 2023-08-09 23:56:59 +02:00
parent a57c18b5b2
commit bf37726c44
No known key found for this signature in database
GPG key ID: 019E764B7184435A

View file

@ -16,13 +16,17 @@
};
config = with config.chvp.base.network.mobile; lib.mkIf enable {
users.users.charlotte.extraGroups = [ "network" ];
networking = {
useDHCP = false;
wireless = {
enable = true;
interfaces = [ wireless-interface ];
environmentFile = config.age.secrets."passwords/networks.age".path;
userControlled.enable = true;
userControlled = {
enable = true;
group = "network";
};
networks = {
"Public Universal Friend".psk = "@PSK_PUF@";
AndroidAP.psk = "@PSK_AndroidAP@";