From 5141a78699924106c8f3d7359528176b1c3fdf7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Sat, 24 Feb 2024 12:05:51 +0100 Subject: Add ipv6 configuration for zoldene --- systems/zoldene/base.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'systems') diff --git a/systems/zoldene/base.nix b/systems/zoldene/base.nix index 2751d63..fc0d68a 100644 --- a/systems/zoldene/base.nix +++ b/systems/zoldene/base.nix @@ -84,6 +84,19 @@ in firewall.allowedUDPPorts = [ 43484 ]; # needed for initrd proper network setup too useDHCP = lib.mkDefault true; + interfaces."enp0s31f6".ipv6.addresses = pkgs.lib.flatten (pkgs.lib.attrsets.mapAttrsToList + (n: ips: map (ip: { address = ip; prefixLength = (if n == "main" && ip == pkgs.lib.head ips.ip6 then 64 else 128); }) (ips.ip6 or [])) + config.hostEnv.ips); + defaultGateway6 = { + address = "fe80::1"; + interface = "enp0s31f6"; + }; + nameservers = [ + "185.12.64.1" + "185.12.64.2" + "2a01:4ff:ff00::add:1" + "2a01:4ff:ff00::add:2" + ]; wireguard.interfaces.wg0 = { generatePrivateKeyFile = true; -- cgit v1.2.3