Merge pull request #27756 from volth/tinc-fix
tinc: allow the daemon to write to files in /etc/tinc/${network}/hosts
commit758bf31a227ca242625e2958009dc31e05ef7e5d
authorJörg Thalheim <Mic92@users.noreply.github.com>
dateSun 30 Jul 2017, 11:15 (9 years ago)
parent12e8bea3b82d7d
nixos/modules/services/networking/tinc.nix+1−1
@@ -131,7 +131,7 @@ in
131131 (flip mapAttrsToList cfg.networks (network: data:
132132 flip mapAttrs' data.hosts (host: text: nameValuePair
133133 ("tinc/${network}/hosts/${host}")
134− ({ mode = "0444"; inherit text; })
134+ ({ mode = "0644"; user = "tinc.${network}"; inherit text; })
135135 ) // {
136136 "tinc/${network}/tinc.conf" = {
137137 mode = "0444";