summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Rammhold <andreas@rammhold.de>2020-01-08 19:24:11 +0100
committerAndreas Rammhold <andreas@rammhold.de>2020-04-30 01:15:40 +0200
commit0bdc8d7a58a38e4159bbd52a64b8341a98615b8b (patch)
treec81fe263b90dfba5bb0509ffaa58ae0aa38c30cf
parentMerge pull request #86206 from primeos/chromium (diff)
downloadnixpkgs-0bdc8d7a58a38e4159bbd52a64b8341a98615b8b.tar.gz
nixos/networkd: add RoutesToDNS to DHCP section
-rw-r--r--nixos/modules/system/boot/networkd.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/modules/system/boot/networkd.nix b/nixos/modules/system/boot/networkd.nix
index a7580fb19978..80c8428c63f0 100644
--- a/nixos/modules/system/boot/networkd.nix
+++ b/nixos/modules/system/boot/networkd.nix
@@ -276,13 +276,14 @@ let
checkDhcp = checkUnitConfig "DHCP" [
(assertOnlyFields [
- "UseDNS" "UseNTP" "UseMTU" "Anonymize" "SendHostname" "UseHostname"
+ "UseDNS" "RoutesToDNS" "UseNTP" "UseMTU" "Anonymize" "SendHostname" "UseHostname"
"Hostname" "UseDomains" "UseRoutes" "UseTimezone" "CriticalConnection"
"ClientIdentifier" "VendorClassIdentifier" "UserClass" "DUIDType"
"DUIDRawData" "IAID" "RequestBroadcast" "RouteMetric" "RouteTable"
"ListenPort" "RapidCommit"
])
(assertValueOneOf "UseDNS" boolValues)
+ (assertValueOneOf "RoutesToDNS" boolValues)
(assertValueOneOf "UseNTP" boolValues)
(assertValueOneOf "UseMTU" boolValues)
(assertValueOneOf "Anonymize" boolValues)