nixos/hosts/tor/network.nix

23 lines
549 B
Nix
Raw Normal View History

2024-03-05 22:57:41 +01:00
{...}: {
2024-02-24 19:36:29 +01:00
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.
matchConfig.Name = "ens3";
address = [
"91.210.59.57/25"
2024-07-06 20:56:46 +02:00
"2a12:bec4:11d3:de9f::1/64"
];
routes = [
2024-03-05 22:57:41 +01:00
{routeConfig = {Gateway = "91.210.59.1";};}
{
routeConfig = {
2024-07-06 20:56:46 +02:00
Gateway = "2a12:bec4:11d3::1";
2024-03-05 22:57:41 +01:00
GatewayOnLink = true;
};
}
];
};
};
}