From b87fd2128643a1e0b5f6c77e227f3e0d7ee902f5 Mon Sep 17 00:00:00 2001 From: LorenzProbst Date: Wed, 17 Jun 2026 16:00:51 +0200 Subject: [PATCH] initial setup ipv6 --- configuration.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/configuration.nix b/configuration.nix index 525f65b..7e52383 100644 --- a/configuration.nix +++ b/configuration.nix @@ -44,7 +44,17 @@ domain = "lo-probst.de"; networkmanager.enable = true; # Configure network connections interactively with nmcli or nmtui. useDHCP = false; - interfaces.enp1s0.useDHCP = true; + interfaces.enp1s0 = { + useDHCP = true; + ipv6.addresses = [ { + address = "2a01:4f8:c010:b496::1"; + prefixLength = 64; + } ]; + }; + defaultGateway6 = { + address = "fe80::1"; + interface = "enp1s0"; + }; # Open ports in the firewall. firewall.allowedTCPPorts = [ 80 443 ]; # firewall.allowedUDPPorts = [ ... ];