nixcfg/nixosModules/system/wifi.nix

50 lines
1.2 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 = {
connection.type = "wifi";
connection.id = "Stargate-Discovery";
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 = {
connection.type = "wifi";
connection.id = "wattson";
wifi.ssid = "wattson";
wifi-security = {
auth-alg = "open";
key-mgmt = "wpa-psk";
psk = "$wattsonPSK";
};
};
"Dustins iPhone" = {
connection.type = "Dustins iPhone";
connection.id = "Dustins iPhone";
wifi.ssid = "Dustins iPhone";
wifi-security = {
auth-alg = "open";
key-mgmt = "wpa-psk";
psk = "$DustinsiPhonePSK";
};
};
2024-06-08 22:32:15 -04:00
};
};
};
}