18 lines
485 B
Nix
18 lines
485 B
Nix
|
{ ... }: {
|
||
|
systemd.network.networks = {
|
||
|
"10-lan" = {
|
||
|
# IPv4 settings are from `sudo dhcpcd --test`.
|
||
|
# IPv6 settings are from https://www.ssdvps.dk/knowledgebase/18/IPv6-Gateway.html.
|
||
|
name = "ens3";
|
||
|
address = [
|
||
|
"91.210.59.57/25"
|
||
|
"2a0d:3e83:1:b284::1/64"
|
||
|
];
|
||
|
routes = [
|
||
|
{ routeConfig = { Gateway = "91.210.59.1"; }; }
|
||
|
{ routeConfig = { Gateway = "2a0d:3e83:1::1"; GatewayOnLink = true; }; }
|
||
|
];
|
||
|
};
|
||
|
};
|
||
|
}
|