summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hel.nix24
1 files changed, 0 insertions, 24 deletions
diff --git a/hel.nix b/hel.nix
index 01f2093e..ef93a3ca 100644
--- a/hel.nix
+++ b/hel.nix
@@ -143,31 +143,7 @@
143 enableOnBoot = false; 143 enableOnBoot = false;
144 }; 144 };
145 145
146 systemd.services."unbound" = {
147 preStart = ''
148 if test -d /etc/unbound; then
149 mkdir -p /var/lib/unbound/etc/unbound
150 ${pkgs.utillinux}/bin/mount -o bind,ro -n /etc/unbound /var/lib/unbound/etc/unbound
151 fi
152 '';
153 serviceConfig.ExecStopPost = lib.mkForce (pkgs.writeScript "unit-script-unbound-post-stop" ''
154 #!${pkgs.bash}/bin/bash
155
156 ${pkgs.utillinux}/bin/umount /var/lib/unbound/dev/random
157 ${pkgs.utillinux}/bin/umount /var/lib/unbound/etc/unbound
158 '');
159 };
160
161 services = { 146 services = {
162 unbound = {
163 enable = true;
164 extraConfig = ''
165 remote-control:
166 control-enable: yes
167
168 '';
169 };
170
171 fprintd.enable = true; 147 fprintd.enable = true;
172 148
173 vnstat.enable = true; 149 vnstat.enable = true;