nix-config/hosts/desktopnix/net.nix

16 lines
366 B
Nix
Raw Normal View History

2023-08-30 14:25:52 +02:00
{config, ...}: {
networking = {
inherit (config.secrets.secrets.local.networking) hostId;
};
systemd.network.networks = {
"01-lan1" = {
DHCP = "yes";
2023-08-30 14:25:52 +02:00
matchConfig.MACAddress = config.secrets.secrets.local.networking.lan1.mac;
networkConfig = {
IPv6PrivacyExtensions = "yes";
MulticastDNS = true;
};
2023-08-30 14:25:52 +02:00
};
};
}