about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorFranz Pletz <fpletz@fnordicwalking.de>2023-12-20 20:43:25 +0100
committerGitHub <noreply@github.com>2023-12-20 20:43:25 +0100
commitfd1cb7f4ca165d257c3c66975443b86d37c34614 (patch)
tree3cc70ac8328f51fea60c1a636d1e63e28f4d55e2 /nixos
parent4a45f3d6ff1c9f0f50e938387966c6b6eb059a26 (diff)
parentc0a46866f211808c95aa9de26c355995340d289f (diff)
Merge pull request #275639 from NixOS/backport-207717-to-release-23.11
[Backport release-23.11] Allow IPv6LinkLocalAddressGenerationMode in networkConfig
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/system/boot/networkd.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/nixos/modules/system/boot/networkd.nix b/nixos/modules/system/boot/networkd.nix
index 33261021480f1..5ce04484710a8 100644
--- a/nixos/modules/system/boot/networkd.nix
+++ b/nixos/modules/system/boot/networkd.nix
@@ -597,6 +597,8 @@ let
           "DHCP"
           "DHCPServer"
           "LinkLocalAddressing"
+          "IPv6LinkLocalAddressGenerationMode"
+          "IPv6StableSecretAddress"
           "IPv4LLRoute"
           "DefaultRouteOnDevice"
           "LLMNR"
@@ -648,6 +650,7 @@ let
         (assertValueOneOf "DHCP" ["yes" "no" "ipv4" "ipv6"])
         (assertValueOneOf "DHCPServer" boolValues)
         (assertValueOneOf "LinkLocalAddressing" ["yes" "no" "ipv4" "ipv6" "fallback" "ipv4-fallback"])
+        (assertValueOneOf "IPv6LinkLocalAddressGenerationMode" ["eui64" "none" "stable-privacy" "random"])
         (assertValueOneOf "IPv4LLRoute" boolValues)
         (assertValueOneOf "DefaultRouteOnDevice" boolValues)
         (assertValueOneOf "LLMNR" (boolValues ++ ["resolve"]))