diff options
author | Vincent Haupert <mail@vincent-haupert.de> | 2021-01-30 11:04:35 +0100 |
---|---|---|
committer | Vincent Haupert <mail@vincent-haupert.de> | 2021-01-30 12:50:22 +0100 |
commit | 53033aaf5a2620c8adaf6e66ef9afc1d567132c2 (patch) | |
tree | ae9b699c91614565ad37a26072d926fbd01064d2 /nixos/modules/system/boot/networkd.nix | |
parent | 1d8c7f5499d922b3f6574cf3214ca81d94e2c637 (diff) | |
download | nixpkgs-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.nix | 15 |
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" [ |