25 lines
621 B
Nix
25 lines
621 B
Nix
|
{config, ...}: {
|
||
|
networking = {
|
||
|
inherit (config.secrets.secrets.local.networking) hostId;
|
||
|
wireless.iwd.enable = true;
|
||
|
};
|
||
|
|
||
|
systemd.network.networks = {
|
||
|
"01-wlan1" = {
|
||
|
DHCP = "yes";
|
||
|
matchConfig.MACAddress = config.secrets.secrets.local.networking.wlan1.mac;
|
||
|
networkConfig = {
|
||
|
IPv6PrivacyExtensions = "yes";
|
||
|
MulticastDNS = true;
|
||
|
};
|
||
|
dns = ["9.9.9.9"];
|
||
|
dhcpV4Config.RouteMetric = 40;
|
||
|
dhcpV6Config.RouteMetric = 40;
|
||
|
};
|
||
|
};
|
||
|
age.secrets.eduroam = {
|
||
|
rekeyFile = ./secrets/iwd/eduroam.8021x.age;
|
||
|
path = "/var/lib/iwd/eduroam.8021x";
|
||
|
};
|
||
|
}
|