From 0ea630b6fa235812575d83a3b6ca7aeae73f2afd Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 9 Jul 2019 17:45:51 +0200 Subject: ... --- hel.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/hel.nix b/hel.nix index 04be2fe3..eff19194 100644 --- a/hel.nix +++ b/hel.nix @@ -143,10 +143,21 @@ enableOnBoot = false; }; + systemd.services."unbound" = { + path = with pkgs; [ unbound ]; + + preStart = '' + unbound-control-setup -d /var/lib/unbound + ''; + }; + services = { unbound = { enable = true; - extraConfig = " control-enable: yes"; + extraConfig = '' + remote-control: + control-enable: yes + ''; }; fprintd.enable = true; -- cgit v1.2.3