summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraham Christensen <graham@grahamc.com>2022-04-26 15:49:52 -0400
committerGitHub <noreply@github.com>2022-04-26 15:49:52 -0400
commitf8fbe2dee12735b541a13619d08dc7cbd32e91eb (patch)
treede730ef8c975293fca2b3a11c6d8b209d94e8ece
parentMerge pull request #170268 from bobby285271/gnome-music (diff)
downloadnixpkgs-origin/grahamc-patch-3.tar.gz
networkd: support specifying the ClientIdentifier for DHCPv4 optionsorigin/grahamc-patch-3
-rw-r--r--nixos/modules/system/boot/networkd.nix2
1 files changed, 2 insertions, 0 deletions
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" [