blob: ce664198280199e3c01af194244c8604417b92b3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
{config, ...}: {
# Wireless secrets stored through sops
sops.secrets.wireless = {
sopsFile = ../secrets.yaml;
neededForUsers = true;
};
networking.wireless = {
enable = true;
fallbackToWPA2 = false;
# Declarative
secretsFile = config.sops.secrets.wireless.path;
networks = {
"Black Vulture" = {
pskRaw = "ext:home_psk";
};
};
# Imperative
allowAuxiliaryImperativeNetworks = true;
userControlled = {
enable = true;
group = "network";
};
extraConfig = ''
update_config=1
'';
};
# Ensure group exists
users.groups.network = {};
systemd.services.wpa_supplicant.preStart = "touch /etc/wpa_supplicant.conf";
}
|