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 19:24:11 +0100
committerAndreas Rammhold <andreas@rammhold.de>2020-04-30 01:15:40 +0200
commit0bdc8d7a58a38e4159bbd52a64b8341a98615b8b (patch)
treec81fe263b90dfba5bb0509ffaa58ae0aa38c30cf /nixos/modules/system/boot/networkd.nix
parentbfa2452dc83cde6e1a939d1a5b5406de159ebc91 (diff)
downloadnixpkgs-0bdc8d7a58a38e4159bbd52a64b8341a98615b8b.tar
nixpkgs-0bdc8d7a58a38e4159bbd52a64b8341a98615b8b.tar.gz
nixpkgs-0bdc8d7a58a38e4159bbd52a64b8341a98615b8b.tar.bz2
nixpkgs-0bdc8d7a58a38e4159bbd52a64b8341a98615b8b.tar.lz
nixpkgs-0bdc8d7a58a38e4159bbd52a64b8341a98615b8b.tar.xz
nixpkgs-0bdc8d7a58a38e4159bbd52a64b8341a98615b8b.tar.zst
nixpkgs-0bdc8d7a58a38e4159bbd52a64b8341a98615b8b.zip
nixos/networkd: add RoutesToDNS to DHCP section
Diffstat (limited to 'nixos/modules/system/boot/networkd.nix')
-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 a7580fb1997..80c8428c63f 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)