tinc: allow the daemon to write to files in /etc/tinc/${network}/hosts
commit3b82d7db82de8c145de231faab4c953fa0eaca2e
authorVolth <volth@webmaster.ms>
dateSat 15 Jul 2017, 08:58 (9 years ago)
parent23d8fd4
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";