From 342a47f9bcbdf636158bf7fed22f9d94af1189d9 Mon Sep 17 00:00:00 2001 From: Tom Herbers Date: Sat, 21 Sep 2024 02:08:33 +0200 Subject: [PATCH] nixos/networkd: add DHCPv4 - IPv6OnlyMode toggle The option was introduced in systemd version 255. https://www.freedesktop.org/software/systemd/man/latest/systemd.network.html#IPv6OnlyMode= --- nixos/modules/system/boot/networkd.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/modules/system/boot/networkd.nix b/nixos/modules/system/boot/networkd.nix index e000d99cfb48..94a5de7e2bd4 100644 --- a/nixos/modules/system/boot/networkd.nix +++ b/nixos/modules/system/boot/networkd.nix @@ -855,6 +855,7 @@ let "UseGateway" "UseRoutes" "UseTimezone" + "IPv6OnlyMode" "ClientIdentifier" "VendorClassIdentifier" "UserClass" @@ -888,6 +889,7 @@ let (assertValueOneOf "UseGateway" boolValues) (assertValueOneOf "UseRoutes" boolValues) (assertValueOneOf "UseTimezone" boolValues) + (assertValueOneOf "IPv6OnlyMode" boolValues) (assertValueOneOf "ClientIdentifier" ["mac" "duid" "duid-only"]) (assertInt "IAID") (assertValueOneOf "RequestBroadcast" boolValues)