2024-11-28 22:06:48 +03:00
|
|
|
{ ... }: {
|
|
|
|
systemd.network = {
|
|
|
|
networks = {
|
|
|
|
"10-lan" = {
|
|
|
|
matchConfig.Name = "enp4s0";
|
|
|
|
linkConfig.RequiredForOnline = "routable";
|
|
|
|
networkConfig = {
|
|
|
|
DHCP = "ipv4";
|
2024-11-28 22:27:07 +03:00
|
|
|
DNS = "10.0.0.1";
|
2024-11-28 22:06:48 +03:00
|
|
|
IPv6AcceptRA = true;
|
|
|
|
};
|
|
|
|
address = [
|
|
|
|
"10.0.0.3/24"
|
|
|
|
];
|
|
|
|
routes = [
|
|
|
|
{ routeConfig.Gateway = "10.0.0.1"; }
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|