1
Fork 0
satellite/hosts/nixos/common/global/wireless/default.nix
Matei Adriel 9eeb459372
Some changes:
- FOSDEM wifi
- Started trying to use eww (I think I added a base16 theming system?)
- Custom exa aliases!
2023-02-08 04:31:15 +01:00

36 lines
803 B
Nix

{ config, lib, ... }: {
# Wireless secrets stored through agenix
age.secrets.wireless.file = ./wifi_passwords.age;
networking.wireless = {
enable = true;
fallbackToWPA2 = false;
# Declarative
environmentFile = config.age.secrets.wireless.path;
networks = {
"Neptune".psk = "@PHONE_HOTSPOT_PASS@";
"TP-Link_522C".psk = "@TG_HOME_PASS@";
"Sailhorse".psk = "@NL_SAILHORSE_PASS@";
"FOSDEM-Dualstack" = {};
};
# Imperative
allowAuxiliaryImperativeNetworks = true;
userControlled = {
enable = true;
group = "network";
};
};
# Ensure group exists
users.groups.network = { };
# Persist imperative config
# environment.persistence = {
# "/persist".files = [
# "/etc/wpa_supplicant.conf"
# ];
# };
}