nixos-module/container/dnscache: fix local forward-zones

legacy
Astro 2 years ago
parent c70cb80a78
commit 16d60e0dd3

@ -61,9 +61,9 @@ lib.mkIf config.site.hosts.${hostName}.services.dnscache.enable {
${lib.concatMapStrings ({ name, ... }: ''
forward-zone:
name: "${name}"
forward-host: "${config.site.net.serv.hosts4.dns}"
forward-addr: "${config.site.net.serv.hosts4.dns}"
${lib.concatMapStrings (hosts6:
" forward-host: ${hosts6.dns}\n"
" forward-addr: ${hosts6.dns}\n"
) (builtins.attrValues config.site.net.serv.hosts6)}
'') config.site.dns.localZones}

Loading…
Cancel
Save