From d9199cbf481bebb11402b54055526b045f3d815c Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Wed, 27 Apr 2016 12:32:53 +0200 Subject: permissions --- custom/uucp.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'custom') diff --git a/custom/uucp.nix b/custom/uucp.nix index 26a2b4b8..dff7e5e7 100644 --- a/custom/uucp.nix +++ b/custom/uucp.nix @@ -113,7 +113,9 @@ in { system.activationScripts."uucp-sshconfig" = '' mkdir -p ${config.users.users."uucp".home}/.ssh - cp ${builtins.toFile "ssh-config" config.services.uucp.sshConfig} ${config.users.users."uucp".home}/.ssh/config + chown ${users.users."uucp".name}:${users.users."uucp".group} ${config.users.users."uucp".home}/.ssh + chmod 700 ${config.users.users."uucp".home}/.ssh + ln -s ${builtins.toFile "ssh-config" config.services.uucp.sshConfig} ${config.users.users."uucp".home}/.ssh/config ''; environment.etc."uucp/port" = { -- cgit v1.2.3