diff options
| author | Gregor Kleen <gkleen@yggdrasil.li> | 2019-07-09 18:52:15 +0200 |
|---|---|---|
| committer | Gregor Kleen <gkleen@yggdrasil.li> | 2019-07-09 18:52:15 +0200 |
| commit | 11192fd7a3972cad0eccf3583d6954e81e1ef49a (patch) | |
| tree | 1611777bf9892d874cf29f07c5240b60c850f78e | |
| parent | 9da246abeeaae92b5cecd0526eeb40a1cccb3260 (diff) | |
| download | nixos-11192fd7a3972cad0eccf3583d6954e81e1ef49a.tar nixos-11192fd7a3972cad0eccf3583d6954e81e1ef49a.tar.gz nixos-11192fd7a3972cad0eccf3583d6954e81e1ef49a.tar.bz2 nixos-11192fd7a3972cad0eccf3583d6954e81e1ef49a.tar.xz nixos-11192fd7a3972cad0eccf3583d6954e81e1ef49a.zip | |
no unbound
| -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; |
