nixos-config/common/components/wifi-secrets.nix

64 lines
1.4 KiB
Nix
Raw Normal View History

2024-08-10 19:23:59 +02:00
{config, ...}: {
age.secrets.nm-secrets = {
file = ../../crypto/nm-secrets.age;
owner = "root";
group = "root";
};
networking = {
networkmanager = {
ensureProfiles = {
environmentFiles = [
config.age.secrets.nm-secrets.path
];
profiles = {
Starlink = {
connection = {
id = "Starlink";
type = "wifi";
};
ipv4 = {
method = "auto";
};
ipv6 = {
addr-gen-mode = "stable-privacy";
method = "auto";
};
wifi = {
mode = "infrastructure";
ssid = "Starlink";
};
wifi-security = {
key-mgmt = "wpa-psk";
psk = "$STARLINK_PSK";
};
};
2024-09-29 18:59:55 +02:00
Isopropyl = {
connection = {
id = "Isopropyl";
type = "wifi";
};
ipv4 = {
method = "auto";
};
ipv6 = {
addr-gen-mode = "stable-privacy";
method = "auto";
};
wifi = {
mode = "infrastructure";
ssid = "Isopropyl_notrack";
};
wifi-security = {
key-mgmt = "wpa-psk";
psk = "$ISOPROPYL_PSK";
};
};
2024-08-10 19:23:59 +02:00
};
};
};
};
}