diff --git a/hosts/tor/default.nix b/hosts/tor/default.nix index 71cb469..f7c0977 100644 --- a/hosts/tor/default.nix +++ b/hosts/tor/default.nix @@ -6,16 +6,18 @@ ../../modules/tor ]; - networking = { - hostName = "tor"; - interfaces.ens3.ipv6.addresses = [{ - address = "2a0d:3e83:0001:b284::1"; - prefixLength = 64; - }]; - defaultGateway6 = { - # https://www.ssdvps.dk/knowledgebase/18/IPv6-Gateway.html - address = "2a0d:3e83:1::1"; - interface = "ens3"; + networking.hostName = "tor"; + systemd.network.networks = { + "10-lan" = { + 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; }; } + ]; }; };