From 4367b782bc0371702ec398256d68a9e43b95decc Mon Sep 17 00:00:00 2001 From: Vincent Haupert Date: Sun, 9 Oct 2022 00:46:33 +0200 Subject: [PATCH] nixos/networkd: deprecate `IPv6Token=` > The IPv6Token= section in the [Network] section is deprecated, and >> the [IPv6AcceptRA] section gained the Token= setting for its >> replacement. The [IPv6Prefix] section also gained the Token= setting. >> The Token= setting gained 'eui64' mode to explicitly configure an >> address with the EUI64 algorithm based on the interface MAC address. >> The 'prefixstable' mode can now optionally take a secret key. The >> Token= setting in the [DHCPPrefixDelegation] section now supports all >> algorithms supported by the same settings in the other sections. --- nixos/modules/system/boot/networkd.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nixos/modules/system/boot/networkd.nix b/nixos/modules/system/boot/networkd.nix index ad6c95257ad1..2ec238d9275f 100644 --- a/nixos/modules/system/boot/networkd.nix +++ b/nixos/modules/system/boot/networkd.nix @@ -501,7 +501,6 @@ let "LinkLocalAddressing" "IPv4LLRoute" "DefaultRouteOnDevice" - "IPv6Token" "LLMNR" "MulticastDNS" "DNSOverTLS" @@ -795,6 +794,10 @@ let "RouteAllowList" "DHCPv6Client" "RouteMetric" + "UseMTU" + "UseGateway" + "UseRoutePrefix" + "Token" ]) (assertValueOneOf "UseDNS" boolValues) (assertValueOneOf "UseDomains" (boolValues ++ ["route"])) @@ -877,6 +880,7 @@ let "Prefix" "PreferredLifetimeSec" "ValidLifetimeSec" + "Token" ]) (assertValueOneOf "AddressAutoconfiguration" boolValues) (assertValueOneOf "OnLink" boolValues)