From e82047e49d77454479fa9940ab04e96a99f87a87 Mon Sep 17 00:00:00 2001 From: Stefan Junker Date: Sun, 18 Nov 2018 14:44:38 +0100 Subject: [PATCH] nix/os/devices/CFB4ED74: add static ipv6 static address --- nix/os/devices/CFB4ED74/system.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/nix/os/devices/CFB4ED74/system.nix b/nix/os/devices/CFB4ED74/system.nix index f401d6e..5da4f39 100644 --- a/nix/os/devices/CFB4ED74/system.nix +++ b/nix/os/devices/CFB4ED74/system.nix @@ -11,6 +11,13 @@ in { networking.hostName = "CFB4ED74"; # Define your hostname. networking.firewall.enable = true; + networking.interfaces.eth0 = { + useDHCP = true; + ipv6.addresses = [ { + address = "2a02:c207:3003:2387::1"; + prefixLength = 64; + } ]; + }; # Kubernetes # services.kubernetes.roles = ["master" "node"]; @@ -23,7 +30,6 @@ in { services.spice-vdagentd.enable = true; services.qemuGuest.enable = true; - networking.useDHCP = true; boot.initrd.network = { enable = true; udhcpc.extraArgs = [ "-x hostname:${config.networking.hostName}" ];