From 3b82d7db82de8c145de231faab4c953fa0eaca2e Mon Sep 17 00:00:00 2001 From: Volth Date: Sat, 15 Jul 2017 08:58:07 +0000 Subject: [PATCH] tinc: allow the daemon to write to files in /etc/tinc/${network}/hosts --- nixos/modules/services/networking/tinc.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/networking/tinc.nix b/nixos/modules/services/networking/tinc.nix index be5bfaebf7d..b70e44ff542 100644 --- a/nixos/modules/services/networking/tinc.nix +++ b/nixos/modules/services/networking/tinc.nix @@ -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";