services/unbound: fix syntax error

This commit is contained in:
LavaDesu 2025-05-22 23:09:50 +10:00
parent f87dfa314e
commit 44a3d4473f
Signed by: cilly
GPG key ID: 6500251E087653C9

View file

@ -3,7 +3,8 @@ let
dir = "/persist/unbound";
converted = pkgs.runCommand "stevenblack-hosts-unbound" {} ''
grep '^0\.0\.0\.0' "${inputs.stevenblack-hosts}/hosts" | awk '{print "local-zone: \""$2"\" always_refuse"}' | tail -n +2 > "$out"
echo "server:" > "$out"
grep '^0\.0\.0\.0' "${inputs.stevenblack-hosts}/hosts" | awk '{print "local-zone: \""$2"\" always_refuse"}' | tail -n +2 >> "$out"
'';
in {
networking.firewall.interfaces.wg0 = {