From 9db1d1782b74f6717d2c5b3d171d60596b05a9fc Mon Sep 17 00:00:00 2001 From: Ivan Kozik Date: Sun, 8 May 2022 16:00:17 +0000 Subject: [PATCH] nixos/tinc: unbreak the service The user is actually tinc.${network}, as Mic92 points out in https://github.com/NixOS/nixpkgs/pull/171703#discussion_r867506032 Sorry, I broke this in https://github.com/NixOS/nixpkgs/pull/171703 earlier. coreutils 9.1 chown does not complain in this case with a valid dotted user. --- nixos/modules/services/networking/tinc.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/modules/services/networking/tinc.nix b/nixos/modules/services/networking/tinc.nix index 9bc019039e0..31731b60d48 100644 --- a/nixos/modules/services/networking/tinc.nix +++ b/nixos/modules/services/networking/tinc.nix @@ -383,9 +383,9 @@ in }; preStart = '' mkdir -p /etc/tinc/${network}/hosts - chown tinc:${network} /etc/tinc/${network}/hosts + chown tinc.${network} /etc/tinc/${network}/hosts mkdir -p /etc/tinc/${network}/invitations - chown tinc:${network} /etc/tinc/${network}/invitations + chown tinc.${network} /etc/tinc/${network}/invitations # Determine how we should generate our keys if type tinc >/dev/null 2>&1; then