nixos/hosts/tor/network.nix
2024-03-05 22:57:41 +01:00

23 lines
531 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;
};
}
];
};
};
}