diff --git a/hosts/porter/configuration.nix b/hosts/porter/configuration.nix index 25ccad4..a0b06c8 100644 --- a/hosts/porter/configuration.nix +++ b/hosts/porter/configuration.nix @@ -11,11 +11,20 @@ boot.loader.grub.device = "/dev/sda"; networking.useDHCP = false; - # Network - networking.interfaces.ens3.ipv4.addresses = [ { address = "5.45.100.191"; prefixLength = 22; } ]; - networking.interfaces.ens3.ipv6.addresses = [ { address = "2a03:4000:6:48d::1"; prefixLength = 64; } ]; - networking.defaultGateway = { address = "5.45.100.1"; interface = "ens3"; }; - networking.defaultGateway6 = { address = "fe80::1"; interface = "ens3"; }; + systemd.network.enable = true; + systemd.network.networks."10-wan" = { + matchConfig.Name = "ens3"; + address = [ + "2a03:4000:6:48d::1/64" + "5.45.100.191/22" + ]; + routes = [ + { Gateway = "fe80::1"; } + { Gateway = "5.45.100.1"; } + ]; + linkConfig.RequiredForOnline = "routable"; + }; + networking.nameservers = [ "46.38.255.230" "46.38.252.230" ]; clerie.nginx-port-forward = {