nixcfg/nixosModules/system/wifi.nix
2024-06-09 09:40:29 -04:00

55 lines
1.4 KiB
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
config,
inputs,
lib,
pkgs,
...
}: {
age.secrets.DustinsiPhone.file = ../../secrets/wifi/DustinsiPhone.age;
age.secrets.Stargate-Discovery.file = ../../secrets/wifi/Stargate-Discovery.age;
age.secrets.wattson.file = ../../secrets/wifi/wattson.age;
networking.networkmanager = {
ensureProfiles = {
environmentFiles = [
config.age.secrets.DustinsiPhone.path
config.age.secrets.Stargate-Discovery.path
config.age.secrets.wattson.path
];
profiles = {
Stargate-Discovery = {
connection.type = "wifi";
connection.id = "Stargate-Discovery";
wifi.ssid = "Stargate-Discovery";
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";
};
};
};
};
};
}