diff options
author | Nikolay Amiantov <ab@fmap.me> | 2019-07-15 20:18:49 +0300 |
---|---|---|
committer | Nikolay Amiantov <ab@fmap.me> | 2019-07-15 20:25:39 +0300 |
commit | 01b90dce78ee3906def0fc8d800217a3f9f40aa7 (patch) | |
tree | e4641a57c7dea1639d817fc97f4d22918dbd4ba5 /nixos/modules/services/networking/unbound.nix | |
parent | 267c8d6b2fea05bc811c8e2c2f4529b1436eeb9a (diff) | |
download | nixpkgs-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/unbound.nix')
-rw-r--r-- | nixos/modules/services/networking/unbound.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/modules/services/networking/unbound.nix b/nixos/modules/services/networking/unbound.nix index 1a35979ad44..3cf82e8839b 100644 --- a/nixos/modules/services/networking/unbound.nix +++ b/nixos/modules/services/networking/unbound.nix @@ -101,6 +101,8 @@ in isSystemUser = true; }; + networking.resolvconf.useLocalResolver = mkDefault true; + systemd.services.unbound = { description = "Unbound recursive Domain Name Server"; after = [ "network.target" ]; |