From 6c324710e391a0cd78c13cc80f4819e6b4569a32 Mon Sep 17 00:00:00 2001 From: Logan Attwood Date: Tue, 17 Dec 2024 21:17:19 -0400 Subject: [PATCH] nixos/networkd: expose RapidCommit in DHCPv4 network unit section Disabling this option is required to obtain a DHCPv4 lease from some old/misconfigured DHCP servers. This was already exposed for DHCPv6. --- 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 a4b1a4e208fa4..ea38c2fdedc1a 100644 --- a/nixos/modules/system/boot/networkd.nix +++ b/nixos/modules/system/boot/networkd.nix @@ -877,6 +877,7 @@ let "IAID" "RequestBroadcast" "RouteMetric" + "RapidCommit" "RouteTable" "RouteMTUBytes" "ListenPort" @@ -906,6 +907,7 @@ let (assertInt "IAID") (assertValueOneOf "RequestBroadcast" boolValues) (assertInt "RouteMetric") + (assertValueOneOf "RapidCommit" boolValues) (assertInt "RouteTable") (assertRange "RouteTable" 0 4294967295) (assertByteFormat "RouteMTUBytes")