nixcfg/nixosModules/system/wifi.nix

70 lines
1.6 KiB
Nix
Raw Normal View History

2024-06-08 22:32:15 -04:00
{
config,
inputs,
lib,
pkgs,
...
}: {
age.secrets.wifi.file = ../../secrets/wifi.age;
2024-06-08 22:32:15 -04:00
networking.networkmanager = {
ensureProfiles = {
environmentFiles = [
config.age.secrets.wifi.path
2024-06-08 22:32:15 -04:00
];
profiles = {
Stargate-Discovery = {
2024-06-09 12:30:08 -04:00
connection = {
id = "Stargate-Discovery";
type = "wifi";
};
2024-06-08 23:12:29 -04:00
wifi.ssid = "Stargate-Discovery";
2024-06-08 22:32:15 -04:00
wifi-security = {
auth-alg = "open";
key-mgmt = "wpa-psk";
psk = "$StargateDiscoveryPSK";
};
};
wattson = {
2024-06-09 12:30:08 -04:00
connection = {
id = "wattson";
type = "wifi";
};
2024-06-08 22:32:15 -04:00
wifi.ssid = "wattson";
wifi-security = {
auth-alg = "open";
key-mgmt = "wpa-psk";
psk = "$wattsonPSK";
};
};
"Dustins iPhone" = {
2024-06-09 12:30:08 -04:00
connection = {
id = "Dustins iPhone";
type = "wifi";
};
wifi.ssid = "Dustins iPhone";
wifi-security = {
auth-alg = "open";
key-mgmt = "wpa-psk";
psk = "$DustinsiPhonePSK";
};
};
2024-06-09 12:30:08 -04:00
WeWorkWiFi = {
"802-1x" = {
eap = "peap;";
identity = "$WeWorkWiFiIdentity";
password = "$WeWorkWiFiPassword";
phase2-auth = "mschapv2";
};
connection = {
id = "WeWorkWiFi";
type = "wifi";
};
wifi.ssid = "WeWorkWiFi";
wifi-security.key-mgmt = "wpa-eap";
};
2024-06-08 22:32:15 -04:00
};
};
};
}