summaryrefslogtreecommitdiff
path: root/custom
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2016-04-27 12:32:53 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2016-04-27 12:32:53 +0200
commitd9199cbf481bebb11402b54055526b045f3d815c (patch)
treec9b39f5a29359d16a4028cce9b2e9dfd87a59c57 /custom
parentcc372b884bb592363e6c20cfed3130970ef1080a (diff)
downloadnixos-d9199cbf481bebb11402b54055526b045f3d815c.tar
nixos-d9199cbf481bebb11402b54055526b045f3d815c.tar.gz
nixos-d9199cbf481bebb11402b54055526b045f3d815c.tar.bz2
nixos-d9199cbf481bebb11402b54055526b045f3d815c.tar.xz
nixos-d9199cbf481bebb11402b54055526b045f3d815c.zip
permissions
Diffstat (limited to 'custom')
-rw-r--r--custom/uucp.nix4
1 files changed, 3 insertions, 1 deletions
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 {
113 113
114 system.activationScripts."uucp-sshconfig" = '' 114 system.activationScripts."uucp-sshconfig" = ''
115 mkdir -p ${config.users.users."uucp".home}/.ssh 115 mkdir -p ${config.users.users."uucp".home}/.ssh
116 cp ${builtins.toFile "ssh-config" config.services.uucp.sshConfig} ${config.users.users."uucp".home}/.ssh/config 116 chown ${users.users."uucp".name}:${users.users."uucp".group} ${config.users.users."uucp".home}/.ssh
117 chmod 700 ${config.users.users."uucp".home}/.ssh
118 ln -s ${builtins.toFile "ssh-config" config.services.uucp.sshConfig} ${config.users.users."uucp".home}/.ssh/config
117 ''; 119 '';
118 120
119 environment.etc."uucp/port" = { 121 environment.etc."uucp/port" = {