From 7937ec74503243bb3e2782bc61b3aa61eacc6842 Mon Sep 17 00:00:00 2001 From: ene Date: Sun, 19 Mar 2023 20:16:17 +0100 Subject: Fix(hosts/server1/networking): Fix Gateways Assigning a specific interface for a gateway should make it easier for nixos to configure it. --- hosts/server1/networking.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'hosts/server1/networking.nix') diff --git a/hosts/server1/networking.nix b/hosts/server1/networking.nix index 26d6719..dd86494 100644 --- a/hosts/server1/networking.nix +++ b/hosts/server1/networking.nix @@ -5,8 +5,14 @@ nameservers = [ "8.8.8.8" ]; - defaultGateway = "89.58.56.1"; - defaultGateway6 = "fe80::1"; + defaultGateway = { + address = "89.58.56.1"; + interface = "eth0"; + }; + defaultGateway6 = { + address = "fe80::1"; + interface = "eth0"; + }; dhcpcd.enable = false; usePredictableInterfaceNames = lib.mkForce false; interfaces = { -- cgit 1.4.1 From 9243e3d00215aff3abb47e6b868ebee2eb14c0ed Mon Sep 17 00:00:00 2001 From: ene Date: Sun, 19 Mar 2023 20:17:34 +0100 Subject: Fix(hosts/server1/networking): Correct ipv6 The used ips were straight up wrong. --- hosts/server1/networking.nix | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'hosts/server1/networking.nix') diff --git a/hosts/server1/networking.nix b/hosts/server1/networking.nix index dd86494..d3c5422 100644 --- a/hosts/server1/networking.nix +++ b/hosts/server1/networking.nix @@ -25,11 +25,7 @@ ]; ipv6.addresses = [ { - address = "2a03:4000:6a:3f3:6422:6dff:fe82:939b"; - prefixLength = 64; - } - { - address = "fe80::6422:6dff:fe82:939b"; + address = "2a03:4000:6a:3f3::1"; prefixLength = 64; } ]; -- cgit 1.4.1