Wi-Fi now has passwords automatically configured
This commit is contained in:
parent
d42fca2eaa
commit
cab650a803
5 changed files with 29 additions and 2 deletions
|
|
@ -13,7 +13,30 @@ in {
|
|||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
networking.networkmanager.enable = true;
|
||||
users.users.horseman.extraGroups = ["networkmanager"];
|
||||
networking.wireless = {
|
||||
enable = true;
|
||||
userControlled.enable = true;
|
||||
|
||||
secretsFile = toString config.age.secrets.wifi.path;
|
||||
|
||||
networks = {
|
||||
"Wi-Fi de Ruiters" = {
|
||||
pskRaw = "ext:psk_wifideruiter";
|
||||
};
|
||||
|
||||
"kargadoor" = {
|
||||
pskRaw = "ext:psk_kargadoor";
|
||||
};
|
||||
|
||||
"eduroam" = {
|
||||
auth = ''
|
||||
key_mgmt=WPA-EAP
|
||||
eap=PWD
|
||||
identity="ext:identity_eduroam"
|
||||
password="ext:psk_eduroam"
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ in {
|
|||
services.syncthing = {
|
||||
enable = true;
|
||||
user = "horseman";
|
||||
group = "users";
|
||||
dataDir = "/home/horseman";
|
||||
configDir = "/home/horseman/.config/syncthing";
|
||||
overrideDevices = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue