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

21 lines
342 B
Nix

{ ... }: {
systemd.network = {
networks = {
"10-lan" = {
matchConfig.Name = "enp4s0";
linkConfig.RequiredForOnline = "routable";
networkConfig = {
DHCP = "ipv4";
IPv6AcceptRA = true;
};
address = [
"10.0.0.3/24"
];
routes = [
{ routeConfig.Gateway = "10.0.0.1"; }
];
};
};
};
}