From 9832c9d44903bdcc56aa580895b3413d1e5307f8 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Wed, 27 Apr 2016 11:42:43 +0200 Subject: scoping --- custom/uucp.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'custom') 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 { }; }; - config = with config; { + config = { environment.etc."uucp/config" = { enable = config.services.uucp.enable; text = '' @@ -96,11 +96,11 @@ rec { ''; }; - users.users."uucp" = optional services.uucp.enable services.uucp.sshUser; + users.users."uucp" = optional config.services.uucp.enable config.services.uucp.sshUser; - system.activationScripts."uucp-sshconfig" = optional services.uucp.enable '' - mkdir -p ${users.users."uucp".home}/.ssh - cp ${builtins.toFile "ssh-config" services.uucp.sshConfig} ${users.users."uucp".home}/.ssh/config + system.activationScripts."uucp-sshconfig" = optional config.services.uucp.enable '' + mkdir -p ${config.users.users."uucp".home}/.ssh + cp ${builtins.toFile "ssh-config" config.services.uucp.sshConfig} ${config.users.users."uucp".home}/.ssh/config ''; }; } -- cgit v1.2.3