summaryrefslogtreecommitdiff
path: root/custom
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2016-04-27 11:41:46 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2016-04-27 11:41:46 +0200
commitdd3f845526f34be923be78ffbebadeb9db9b8a4f (patch)
tree6baf18f8a2f8814f360258d57898258ea2ece3ac /custom
parent3d1e5d72f9276c02ccabdaa6a1a18ae2b5bde504 (diff)
downloadnixos-dd3f845526f34be923be78ffbebadeb9db9b8a4f.tar
nixos-dd3f845526f34be923be78ffbebadeb9db9b8a4f.tar.gz
nixos-dd3f845526f34be923be78ffbebadeb9db9b8a4f.tar.bz2
nixos-dd3f845526f34be923be78ffbebadeb9db9b8a4f.tar.xz
nixos-dd3f845526f34be923be78ffbebadeb9db9b8a4f.zip
scoping
Diffstat (limited to 'custom')
-rw-r--r--custom/uucp.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/custom/uucp.nix b/custom/uucp.nix
index f2e230e8..93c761b8 100644
--- a/custom/uucp.nix
+++ b/custom/uucp.nix
@@ -96,11 +96,11 @@ rec {
96 ''; 96 '';
97 }; 97 };
98 98
99 users.users."uucp" = optional config.services.uucp.enable config.services.uucp.sshUser; 99 users.users."uucp" = optional services.uucp.enable services.uucp.sshUser;
100 100
101 system.activationScripts."uucp-sshconfig" = optional config.services.uucp.enable '' 101 system.activationScripts."uucp-sshconfig" = optional services.uucp.enable ''
102 mkdir -p ${users.users."uucp".home}/.ssh 102 mkdir -p ${users.users."uucp".home}/.ssh
103 cp ${builtins.toFile "ssh-config" config.services.uucp.sshConfig} ${users.users."uucp".home}/.ssh/config 103 cp ${builtins.toFile "ssh-config" services.uucp.sshConfig} ${users.users."uucp".home}/.ssh/config
104 ''; 104 '';
105 }; 105 };
106} 106}