2023-10-06 22:01:50 +02:00
|
|
|
{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;
|
|
|
|
};
|
2023-12-30 00:10:38 +01:00
|
|
|
dns = ["1.1.1.1"];
|
2023-10-06 22:01:50 +02:00
|
|
|
dhcpV4Config.RouteMetric = 40;
|
|
|
|
dhcpV6Config.RouteMetric = 40;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
age.secrets.eduroam = {
|
|
|
|
rekeyFile = ./secrets/iwd/eduroam.8021x.age;
|
|
|
|
path = "/var/lib/iwd/eduroam.8021x";
|
|
|
|
};
|
|
|
|
}
|