nix-config/hosts/desktopnix/net.nix

18 lines
451 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" = {
address = ["192.168.178.30/24"];
2023-09-01 21:23:10 +02:00
gateway = ["192.168.178.1"];
2023-08-30 14:25:52 +02:00
matchConfig.MACAddress = config.secrets.secrets.local.networking.lan1.mac;
dns = ["192.168.178.2"];
networkConfig = {
IPv6PrivacyExtensions = "yes";
MulticastDNS = true;
};
2023-08-30 14:25:52 +02:00
};
};
}