summary refs log tree commit diff
path: root/nixos/modules/system/boot/networkd.nix
diff options
context:
space:
mode:
authorAndreas Rammhold <andreas@rammhold.de>2020-01-08 20:05:41 +0100
committerAndreas Rammhold <andreas@rammhold.de>2020-05-01 13:33:54 +0200
commitfc960a012397fac681c87a20f9321b38832b2ed2 (patch)
treeac1896b83c5a14bc82934c85740bf4700160ba7c /nixos/modules/system/boot/networkd.nix
parent7b78f0f098aebdeb6316fc066a4cdeaf62e37abd (diff)
downloadnixpkgs-fc960a012397fac681c87a20f9321b38832b2ed2.tar
nixpkgs-fc960a012397fac681c87a20f9321b38832b2ed2.tar.gz
nixpkgs-fc960a012397fac681c87a20f9321b38832b2ed2.tar.bz2
nixpkgs-fc960a012397fac681c87a20f9321b38832b2ed2.tar.lz
nixpkgs-fc960a012397fac681c87a20f9321b38832b2ed2.tar.xz
nixpkgs-fc960a012397fac681c87a20f9321b38832b2ed2.tar.zst
nixpkgs-fc960a012397fac681c87a20f9321b38832b2ed2.zip
nixos/networkd: add MaxAttempts and SendRelease to the DHCP options
Diffstat (limited to 'nixos/modules/system/boot/networkd.nix')
-rw-r--r--nixos/modules/system/boot/networkd.nix8
1 files changed, 5 insertions, 3 deletions
diff --git a/nixos/modules/system/boot/networkd.nix b/nixos/modules/system/boot/networkd.nix
index 7b55126b1cf..d355d7ad9bd 100644
--- a/nixos/modules/system/boot/networkd.nix
+++ b/nixos/modules/system/boot/networkd.nix
@@ -279,9 +279,9 @@ let
     (assertOnlyFields [
       "UseDNS" "RoutesToDNS" "UseNTP" "UseMTU" "Anonymize" "SendHostname" "UseHostname"
       "Hostname" "UseDomains" "UseRoutes" "UseTimezone"
-      "ClientIdentifier" "VendorClassIdentifier" "UserClass" "DUIDType"
-      "DUIDRawData" "IAID" "RequestBroadcast" "RouteMetric" "RouteTable"
-      "ListenPort" "RapidCommit"
+      "ClientIdentifier" "VendorClassIdentifier" "UserClass" "MaxAttempts"
+      "DUIDType" "DUIDRawData" "IAID" "RequestBroadcast" "RouteMetric" "RouteTable"
+      "ListenPort" "SendRelease" "RapidCommit"
     ])
     (assertValueOneOf "UseDNS" boolValues)
     (assertValueOneOf "RoutesToDNS" boolValues)
@@ -293,9 +293,11 @@ let
     (assertValueOneOf "UseDomains" ["yes" "no" "route"])
     (assertValueOneOf "UseRoutes" boolValues)
     (assertValueOneOf "UseTimezone" boolValues)
+    (assertMinimum "MaxAttempts" 0)
     (assertValueOneOf "RequestBroadcast" boolValues)
     (assertInt "RouteTable")
     (assertMinimum "RouteTable" 0)
+    (assertValueOneOf "SendRelease" boolValues)
     (assertValueOneOf "RapidCommit" boolValues)
   ];