nix-config/hosts/desktopnix/net.nix

23 lines
558 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
};
};
2024-01-10 15:00:59 +01:00
networking.extraHosts = ''
192.168.178.32 pgrossmann.org
192.168.178.32 nc.pgrossmann.org
'';
2023-08-30 14:25:52 +02:00
}