tinc: allow the daemon to write to files in /etc/tinc/${network}/hosts

This commit is contained in:
Volth 2017-07-15 08:58:07 +00:00
parent 23d8fd4ae6
commit 3b82d7db82

View file

@ -131,7 +131,7 @@ in
(flip mapAttrsToList cfg.networks (network: data:
flip mapAttrs' data.hosts (host: text: nameValuePair
("tinc/${network}/hosts/${host}")
({ mode = "0444"; inherit text; })
({ mode = "0644"; user = "tinc.${network}"; inherit text; })
) // {
"tinc/${network}/tinc.conf" = {
mode = "0444";