summary refs log tree commit diff
diff options
context:
space:
mode:
authorSandro Jäckel2021-04-24 09:25:07 +0200
committerRobert Schütz2021-05-26 17:24:55 +0200
commit0b4994f714e51a5789c9b3210d7ad166ab15c7c8 (patch)
tree4c985cd67db67a2ff3ed5a39021ddc8db47fdd93
parent97fc742ae64563093fd26c642db6748e24b01bd9 (diff)
nixos/kresd: tell resolveconf to use local resolver
(cherry picked from commit 140828ce3843444a8536db884147ed5c4b941259)
-rw-r--r--nixos/modules/services/networking/kresd.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/modules/services/networking/kresd.nix b/nixos/modules/services/networking/kresd.nix
index 9b94c390e985..6882a315f616 100644
--- a/nixos/modules/services/networking/kresd.nix
+++ b/nixos/modules/services/networking/kresd.nix
@@ -115,6 +115,8 @@ in {
   config = mkIf cfg.enable {
     environment.etc."knot-resolver/kresd.conf".source = configFile; # not required
 
+    networking.resolvconf.useLocalResolver = mkDefault true;
+
     users.users.knot-resolver =
       { isSystemUser = true;
         group = "knot-resolver";