From aedd4a6f1c161badd305345e91a75baee5af833c Mon Sep 17 00:00:00 2001 From: Romain Paquet Date: Wed, 5 Feb 2025 20:10:33 +0100 Subject: [PATCH] setup ipv6 on crocus --- hosts/crocus/default.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/hosts/crocus/default.nix b/hosts/crocus/default.nix index 640fcda..6111baf 100644 --- a/hosts/crocus/default.nix +++ b/hosts/crocus/default.nix @@ -12,7 +12,19 @@ ]; networking.hostName = "crocus"; - networking.useDHCP = true; + + networking.useDHCP = false; + systemd.network.enable = true; + systemd.network.networks."10-wan" = { + matchConfig.Name = "enp1s0"; + networkConfig.DHCP = "ipv4"; + address = [ + "2a01:4f8:1c1e:e415::1/64" + ]; + routes = [ + { Gateway = "fe80::1"; } + ]; + }; boot.loader.grub = { efiSupport = true;