diff options
| author | Gregor Kleen <gkleen@yggdrasil.li> | 2016-04-27 11:42:43 +0200 |
|---|---|---|
| committer | Gregor Kleen <gkleen@yggdrasil.li> | 2016-04-27 11:42:43 +0200 |
| commit | 9832c9d44903bdcc56aa580895b3413d1e5307f8 (patch) | |
| tree | ee43c6ab40957a5874624e4bebb4acabe7987d70 /custom | |
| parent | 197af86b09f5b2beb7d2e0ca378268424e557285 (diff) | |
| download | nixos-9832c9d44903bdcc56aa580895b3413d1e5307f8.tar nixos-9832c9d44903bdcc56aa580895b3413d1e5307f8.tar.gz nixos-9832c9d44903bdcc56aa580895b3413d1e5307f8.tar.bz2 nixos-9832c9d44903bdcc56aa580895b3413d1e5307f8.tar.xz nixos-9832c9d44903bdcc56aa580895b3413d1e5307f8.zip | |
scoping
Diffstat (limited to 'custom')
| -rw-r--r-- | custom/uucp.nix | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/custom/uucp.nix b/custom/uucp.nix index e384f0b1..ea6f2eef 100644 --- a/custom/uucp.nix +++ b/custom/uucp.nix | |||
| @@ -81,7 +81,7 @@ rec { | |||
| 81 | }; | 81 | }; |
| 82 | }; | 82 | }; |
| 83 | 83 | ||
| 84 | config = with config; { | 84 | config = { |
| 85 | environment.etc."uucp/config" = { | 85 | environment.etc."uucp/config" = { |
| 86 | enable = config.services.uucp.enable; | 86 | enable = config.services.uucp.enable; |
| 87 | text = '' | 87 | text = '' |
| @@ -96,11 +96,11 @@ rec { | |||
| 96 | ''; | 96 | ''; |
| 97 | }; | 97 | }; |
| 98 | 98 | ||
| 99 | users.users."uucp" = optional services.uucp.enable services.uucp.sshUser; | 99 | users.users."uucp" = optional config.services.uucp.enable config.services.uucp.sshUser; |
| 100 | 100 | ||
| 101 | system.activationScripts."uucp-sshconfig" = optional services.uucp.enable '' | 101 | system.activationScripts."uucp-sshconfig" = optional config.services.uucp.enable '' |
| 102 | mkdir -p ${users.users."uucp".home}/.ssh | 102 | mkdir -p ${config.users.users."uucp".home}/.ssh |
| 103 | cp ${builtins.toFile "ssh-config" services.uucp.sshConfig} ${users.users."uucp".home}/.ssh/config | 103 | cp ${builtins.toFile "ssh-config" config.services.uucp.sshConfig} ${config.users.users."uucp".home}/.ssh/config |
| 104 | ''; | 104 | ''; |
| 105 | }; | 105 | }; |
| 106 | } | 106 | } |
