From f8fbe2dee12735b541a13619d08dc7cbd32e91eb Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Tue, 26 Apr 2022 15:49:52 -0400 Subject: networkd: support specifying the ClientIdentifier for DHCPv4 options --- 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 d1a6f46bfc40..b154375e9b10 100644 --- a/nixos/modules/system/boot/networkd.nix +++ b/nixos/modules/system/boot/networkd.nix @@ -27,9 +27,11 @@ let sectionDHCPv4 = checkUnitConfig "DHCPv4" [ (assertOnlyFields [ + "ClientIdentifier" "DUIDType" "DUIDRawData" ]) + (assertValueOneOf "ClientIdentifier" ["mac" "duid" "duid-only"]) ]; sectionDHCPv6 = checkUnitConfig "DHCPv6" [ -- cgit v1.2.3