3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #27756 from volth/tinc-fix

tinc: allow the daemon to write to files in /etc/tinc/${network}/hosts
This commit is contained in:
Jörg Thalheim 2017-07-30 11:15:15 +01:00 committed by GitHub
commit 758bf31a22

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";