about summary refs log tree commit diff
diff options
context:
space:
mode:
authorvolth <volth@webmaster.ms>2017-08-09 22:07:01 +0000
committerRobin Gloster <mail@glob.in>2017-08-10 00:09:45 +0200
commit7e5332c86870336706f51faca50ea5a1b3e9bad5 (patch)
treecf4f42f46a14012d896f22a46daca3824839a48c
parente5f0c4f840fb16014be906029efccdb3058cb04b (diff)
downloadnixlib-7e5332c86870336706f51faca50ea5a1b3e9bad5.tar
nixlib-7e5332c86870336706f51faca50ea5a1b3e9bad5.tar.gz
nixlib-7e5332c86870336706f51faca50ea5a1b3e9bad5.tar.bz2
nixlib-7e5332c86870336706f51faca50ea5a1b3e9bad5.tar.lz
nixlib-7e5332c86870336706f51faca50ea5a1b3e9bad5.tar.xz
nixlib-7e5332c86870336706f51faca50ea5a1b3e9bad5.tar.zst
nixlib-7e5332c86870336706f51faca50ea5a1b3e9bad5.zip
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```
-rw-r--r--nixos/modules/services/networking/tinc.nix1
1 files changed, 1 insertions, 0 deletions
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