summary refs log tree commit diff
path: root/nixos/modules/config
diff options
context:
space:
mode:
authorSchweber <64630479+Schweber@users.noreply.github.com>2024-03-17 07:52:00 +0000
committerGitHub <noreply@github.com>2024-03-17 07:52:00 +0000
commitbeb139496afe7d5badef702f2fa5a03a1d8d5dc7 (patch)
tree3b9df0f2b53be1d8f5f9ec11b1e9106bd7d78b57 /nixos/modules/config
parent62748bdf4286c1b1a3eedb8a5bc4e9198e8c7610 (diff)
nixos/resolvconf: add option "trust-ad" when `useLocalResolver` is enabled
Diffstat (limited to 'nixos/modules/config')
-rw-r--r--nixos/modules/config/resolvconf.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/modules/config/resolvconf.nix b/nixos/modules/config/resolvconf.nix
index 3b8cc0cb8f42e..e52b90c037a83 100644
--- a/nixos/modules/config/resolvconf.nix
+++ b/nixos/modules/config/resolvconf.nix
@@ -10,7 +10,8 @@ let
 
   resolvconfOptions = cfg.extraOptions
     ++ optional cfg.dnsSingleRequest "single-request"
-    ++ optional cfg.dnsExtensionMechanism "edns0";
+    ++ optional cfg.dnsExtensionMechanism "edns0"
+    ++ optional cfg.useLocalResolver "trust-ad";
 
   configText =
     ''