diff options
-rw-r--r-- | hel.nix | 24 |
1 files changed, 0 insertions, 24 deletions
@@ -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; |