summary refs log tree commit diff
path: root/nixos/modules/system
diff options
context:
space:
mode:
authorJason Tarasovic <JTarasovic@users.noreply.github.com>2023-08-15 15:23:57 -0500
committerGitHub <noreply@github.com>2023-08-15 15:23:57 -0500
commit521944571a8c573c184c5f46fd438b047f009e47 (patch)
tree8f3c8d54fb1bcd91f60cc6900b85347829aa44dd /nixos/modules/system
parent4ed9856be002a730234a1a1ed9dcd9dd10cbdb40 (diff)
downloadnixpkgs-521944571a8c573c184c5f46fd438b047f009e47.tar
nixpkgs-521944571a8c573c184c5f46fd438b047f009e47.tar.gz
nixpkgs-521944571a8c573c184c5f46fd438b047f009e47.tar.bz2
nixpkgs-521944571a8c573c184c5f46fd438b047f009e47.tar.lz
nixpkgs-521944571a8c573c184c5f46fd438b047f009e47.tar.xz
nixpkgs-521944571a8c573c184c5f46fd438b047f009e47.tar.zst
nixpkgs-521944571a8c573c184c5f46fd438b047f009e47.zip
systemd-networkd: add dhcpv6Config options
Diffstat (limited to 'nixos/modules/system')
-rw-r--r--nixos/modules/system/boot/networkd.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/nixos/modules/system/boot/networkd.nix b/nixos/modules/system/boot/networkd.nix
index 6d0afcc57fc..ab8054e1b49 100644
--- a/nixos/modules/system/boot/networkd.nix
+++ b/nixos/modules/system/boot/networkd.nix
@@ -799,6 +799,8 @@ let
           "UseAddress"
           "UseDNS"
           "UseNTP"
+          "UseHostname"
+          "UseDomains"
           "RouteMetric"
           "RapidCommit"
           "MUDURL"
@@ -813,16 +815,20 @@ let
           "DUIDRawData"
           "IAID"
           "UseDelegatedPrefix"
+          "SendRelease"
         ])
         (assertValueOneOf "UseAddress" boolValues)
         (assertValueOneOf "UseDNS" boolValues)
         (assertValueOneOf "UseNTP" boolValues)
+        (assertValueOneOf "UseHostname" boolValues)
+        (assertValueOneOf "UseDomains" (boolValues ++ ["route"]))
         (assertInt "RouteMetric")
         (assertValueOneOf "RapidCommit" boolValues)
         (assertValueOneOf "WithoutRA" ["no" "solicit" "information-request"])
         (assertRange "SendOption" 1 65536)
         (assertInt "IAID")
         (assertValueOneOf "UseDelegatedPrefix" boolValues)
+        (assertValueOneOf "SendRelease" boolValues)
       ];
 
       sectionDHCPPrefixDelegation = checkUnitConfig "DHCPPrefixDelegation" [