summary refs log tree commit diff
path: root/nixos/modules/services/networking/bind.nix
diff options
context:
space:
mode:
authorNikolay Amiantov <ab@fmap.me>2019-07-15 20:18:49 +0300
committerNikolay Amiantov <ab@fmap.me>2019-07-15 20:25:39 +0300
commit01b90dce78ee3906def0fc8d800217a3f9f40aa7 (patch)
treee4641a57c7dea1639d817fc97f4d22918dbd4ba5 /nixos/modules/services/networking/bind.nix
parent267c8d6b2fea05bc811c8e2c2f4529b1436eeb9a (diff)
downloadnixpkgs-01b90dce78ee3906def0fc8d800217a3f9f40aa7.tar
nixpkgs-01b90dce78ee3906def0fc8d800217a3f9f40aa7.tar.gz
nixpkgs-01b90dce78ee3906def0fc8d800217a3f9f40aa7.tar.bz2
nixpkgs-01b90dce78ee3906def0fc8d800217a3f9f40aa7.tar.lz
nixpkgs-01b90dce78ee3906def0fc8d800217a3f9f40aa7.tar.xz
nixpkgs-01b90dce78ee3906def0fc8d800217a3f9f40aa7.tar.zst
nixpkgs-01b90dce78ee3906def0fc8d800217a3f9f40aa7.zip
resolvconf service: init
This is a refactor of how resolvconf is managed on NixOS. We split it
into a separate service which is enabled internally depending on whether
we want /etc/resolv.conf to be managed by it. Various services now take
advantage of those configuration options.

We also now use systemd instead of activation scripts to update
resolv.conf.

NetworkManager now uses the right option for rc-manager DNS
automatically, so the configuration option shouldn't be exposed.
Diffstat (limited to 'nixos/modules/services/networking/bind.nix')
-rw-r--r--nixos/modules/services/networking/bind.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/nixos/modules/services/networking/bind.nix b/nixos/modules/services/networking/bind.nix
index 7f89cff2232..2097b9a3163 100644
--- a/nixos/modules/services/networking/bind.nix
+++ b/nixos/modules/services/networking/bind.nix
@@ -168,7 +168,9 @@ in
 
   ###### implementation
 
-  config = mkIf config.services.bind.enable {
+  config = mkIf cfg.enable {
+
+    networking.resolvconf.useLocalResolver = mkDefault true;
 
     users.users = singleton
       { name = bindUser;