network: Make sure charlotte can control wpa_supplicant
This commit is contained in:
parent
a57c18b5b2
commit
bf37726c44
1 changed files with 5 additions and 1 deletions
|
@ -16,13 +16,17 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
config = with config.chvp.base.network.mobile; lib.mkIf enable {
|
config = with config.chvp.base.network.mobile; lib.mkIf enable {
|
||||||
|
users.users.charlotte.extraGroups = [ "network" ];
|
||||||
networking = {
|
networking = {
|
||||||
useDHCP = false;
|
useDHCP = false;
|
||||||
wireless = {
|
wireless = {
|
||||||
enable = true;
|
enable = true;
|
||||||
interfaces = [ wireless-interface ];
|
interfaces = [ wireless-interface ];
|
||||||
environmentFile = config.age.secrets."passwords/networks.age".path;
|
environmentFile = config.age.secrets."passwords/networks.age".path;
|
||||||
userControlled.enable = true;
|
userControlled = {
|
||||||
|
enable = true;
|
||||||
|
group = "network";
|
||||||
|
};
|
||||||
networks = {
|
networks = {
|
||||||
"Public Universal Friend".psk = "@PSK_PUF@";
|
"Public Universal Friend".psk = "@PSK_PUF@";
|
||||||
AndroidAP.psk = "@PSK_AndroidAP@";
|
AndroidAP.psk = "@PSK_AndroidAP@";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue