summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2019-07-09 18:04:13 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2019-07-09 18:04:13 +0200
commit0ff739ab5a2c9c927edc8e14e125b047af0339b5 (patch)
tree8a2dccefa394d87abad0627f0f29137c1a862d73
parent5d9e182e50bded8a801b31f7ee99479efa6052da (diff)
downloadnixos-0ff739ab5a2c9c927edc8e14e125b047af0339b5.tar
nixos-0ff739ab5a2c9c927edc8e14e125b047af0339b5.tar.gz
nixos-0ff739ab5a2c9c927edc8e14e125b047af0339b5.tar.bz2
nixos-0ff739ab5a2c9c927edc8e14e125b047af0339b5.tar.xz
nixos-0ff739ab5a2c9c927edc8e14e125b047af0339b5.zip
...
-rw-r--r--hel.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/hel.nix b/hel.nix
index 867442c2..6ae2d96a 100644
--- a/hel.nix
+++ b/hel.nix
@@ -147,11 +147,11 @@
147 preStart = '' 147 preStart = ''
148 if [[ -d /etc/unbound ]]; then 148 if [[ -d /etc/unbound ]]; then
149 ${pkgs.coreutils}/bin/mkdir -p /var/lib/unbound/etc/unbound 149 ${pkgs.coreutils}/bin/mkdir -p /var/lib/unbound/etc/unbound
150 ${pkgs.utillinux}/bin/mount --bind -n /etc/unbound /var/lib/unbound/etc/unbound 150 ${pkgs.utillinux}/bin/mount -o bind,ro -n /etc/unbound /var/lib/unbound/etc/unbound
151 fi 151 fi
152 ''; 152 '';
153 serviceConfig.ExecStopPost = lib.mkForce (pkgs.writeScript "unit-script-unbound-post-stop" '' 153 serviceConfig.ExecStopPost = lib.mkForce (pkgs.writeScript "unit-script-unbound-post-stop" ''
154 #!${pkgs.stdenv}/bin/bash 154 #!${pkgs.bash}/bin/bash
155 155
156 ${pkgs.utillinux}/bin/umount /var/lib/unbound/dev/random 156 ${pkgs.utillinux}/bin/umount /var/lib/unbound/dev/random
157 ${pkgs.utillinux}/bin/umount /var/lib/unbound/etc/unbound 157 ${pkgs.utillinux}/bin/umount /var/lib/unbound/etc/unbound