From 7e5332c86870336706f51faca50ea5a1b3e9bad5 Mon Sep 17 00:00:00 2001 From: volth Date: Wed, 9 Aug 2017 22:07:01 +0000 Subject: [PATCH] tinc: allow the daemon to write to files in /etc/tinc/${network}/hosts Follow up https://github.com/NixOS/nixpkgs/pull/27756: tinc daemon may also create new files in ```/etc/tinc/$network/hosts``` --- nixos/modules/services/networking/tinc.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/services/networking/tinc.nix b/nixos/modules/services/networking/tinc.nix index b70e44ff5422..7410908b7350 100644 --- a/nixos/modules/services/networking/tinc.nix +++ b/nixos/modules/services/networking/tinc.nix @@ -172,6 +172,7 @@ in }; preStart = '' mkdir -p /etc/tinc/${network}/hosts + chown tinc.${network} /etc/tinc/${network}/hosts # Determine how we should generate our keys if type tinc >/dev/null 2>&1; then