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

21 lines
341 B
Nix
Raw Normal View History

2024-11-28 22:08:16 +03:00
{ ... }: {
systemd.network = {
networks = {
"10-lan" = {
matchConfig.Name = "enp5s0";
linkConfig.RequiredForOnline = "routable";
networkConfig = {
2024-11-29 00:44:11 +03:00
DHCP = "yes";
2024-11-28 22:08:16 +03:00
IPv6AcceptRA = true;
};
address = [
"10.0.0.7/24"
];
routes = [
{ routeConfig.Gateway = "10.0.0.1"; }
];
};
};
};
}