From f9ba0d6175c0f71ea5e2b25e702722984518fcbd Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Fri, 13 Dec 2024 01:15:56 +0100 Subject: Add ipv6 gateway --- srv/h-alpha/hardware-configuration.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/srv/h-alpha/hardware-configuration.nix b/srv/h-alpha/hardware-configuration.nix index 1003394..6304436 100644 --- a/srv/h-alpha/hardware-configuration.nix +++ b/srv/h-alpha/hardware-configuration.nix @@ -24,4 +24,14 @@ swapDevices = [ ]; networking.useDHCP = lib.mkDefault true; nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux"; + systemd.networks.networks."30-wan" = { + matchConfig.Name = "enp1s0"; + networkConfig.DHCP = "ipv4"; + address = [ + "2a01:4f9:c012:5dd3::/64" + ]; + routes = [ + { Gateway = "fe80::1"; } + ]; + }; } -- cgit