mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 13:43:56 -05:00
55 lines
1.4 KiB
Nix
55 lines
1.4 KiB
Nix
{
|
||
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";
|
||
};
|
||
};
|
||
"Dustin’s iPhone" = {
|
||
connection.type = "Dustin’s iPhone";
|
||
connection.id = "Dustin’s iPhone";
|
||
wifi.ssid = "Dustin’s iPhone";
|
||
wifi-security = {
|
||
auth-alg = "open";
|
||
key-mgmt = "wpa-psk";
|
||
psk = "$DustinsiPhonePSK";
|
||
};
|
||
};
|
||
};
|
||
};
|
||
};
|
||
}
|
||
|