summary refs log tree commit diff
path: root/nixos/modules/system/boot/networkd.nix
diff options
context:
space:
mode:
authorVincent Haupert <mail@vincent-haupert.de>2021-01-30 11:04:35 +0100
committerVincent Haupert <mail@vincent-haupert.de>2021-01-30 12:50:22 +0100
commit53033aaf5a2620c8adaf6e66ef9afc1d567132c2 (patch)
treeae9b699c91614565ad37a26072d926fbd01064d2 /nixos/modules/system/boot/networkd.nix
parent1d8c7f5499d922b3f6574cf3214ca81d94e2c637 (diff)
downloadnixpkgs-53033aaf5a2620c8adaf6e66ef9afc1d567132c2.tar
nixpkgs-53033aaf5a2620c8adaf6e66ef9afc1d567132c2.tar.gz
nixpkgs-53033aaf5a2620c8adaf6e66ef9afc1d567132c2.tar.bz2
nixpkgs-53033aaf5a2620c8adaf6e66ef9afc1d567132c2.tar.lz
nixpkgs-53033aaf5a2620c8adaf6e66ef9afc1d567132c2.tar.xz
nixpkgs-53033aaf5a2620c8adaf6e66ef9afc1d567132c2.tar.zst
nixpkgs-53033aaf5a2620c8adaf6e66ef9afc1d567132c2.zip
nixos/networkd: add missing dhcpV6Config options
Diffstat (limited to 'nixos/modules/system/boot/networkd.nix')
-rw-r--r--nixos/modules/system/boot/networkd.nix15
1 files changed, 13 insertions, 2 deletions
diff --git a/nixos/modules/system/boot/networkd.nix b/nixos/modules/system/boot/networkd.nix
index 3b01bc00baf..2a679ffa81a 100644
--- a/nixos/modules/system/boot/networkd.nix
+++ b/nixos/modules/system/boot/networkd.nix
@@ -643,18 +643,29 @@ let
 
       sectionDHCPv6 = checkUnitConfig "DHCPv6" [
         (assertOnlyFields [
+          "UseAddress"
           "UseDNS"
           "UseNTP"
+          "RouteMetric"
           "RapidCommit"
+          "MUDURL"
+          "RequestOptions"
+          "SendVendorOption"
           "ForceDHCPv6PDOtherInformation"
           "PrefixDelegationHint"
-          "RouteMetric"
+          "WithoutRA"
+          "SendOption"
+          "UserClass"
+          "VendorClass"
         ])
+        (assertValueOneOf "UseAddress" boolValues)
         (assertValueOneOf "UseDNS" boolValues)
         (assertValueOneOf "UseNTP" boolValues)
+        (assertInt "RouteMetric")
         (assertValueOneOf "RapidCommit" boolValues)
         (assertValueOneOf "ForceDHCPv6PDOtherInformation" boolValues)
-        (assertInt "RouteMetric")
+        (assertValueOneOf "WithoutRA" ["solicit" "information-request"])
+        (assertRange "SendOption" 1 65536)
       ];
 
       sectionDHCPServer = checkUnitConfig "DHCPServer" [