nix/host/x86_64-linux/desktop/Network.nix

20 lines
328 B
Nix
Raw Normal View History

2024-11-28 22:06:48 +03:00
{ ... }: {
2024-11-29 04:47:05 +03:00
systemd.network.networks = {
"10-lan" = {
matchConfig.Name = "enp4s0";
linkConfig.RequiredForOnline = "routable";
networkConfig = {
DHCP = false;
DNS = "10.0.0.1";
# IPv6AcceptRA = true;
2024-11-28 22:06:48 +03:00
};
2024-11-29 04:47:05 +03:00
address = [
"10.0.0.3/24"
];
routes = [
{ Gateway = "10.0.0.1"; }
];
2024-11-28 22:06:48 +03:00
};
};
}