diff options
| author | Graham Christensen <graham@grahamc.com> | 2022-04-26 15:49:52 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-26 15:49:52 -0400 |
| commit | f8fbe2dee12735b541a13619d08dc7cbd32e91eb (patch) | |
| tree | de730ef8c975293fca2b3a11c6d8b209d94e8ece | |
| parent | Merge pull request #170268 from bobby285271/gnome-music (diff) | |
| download | nixpkgs-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.nix | 2 |
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" [ |
