diff options
-rw-r--r-- | custom/uucp.nix | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/custom/uucp.nix b/custom/uucp.nix index a656596c..a47e0157 100644 --- a/custom/uucp.nix +++ b/custom/uucp.nix | |||
@@ -118,6 +118,18 @@ in { | |||
118 | ln -fs ${builtins.toFile "ssh-config" config.services.uucp.sshConfig} ${config.users.users."uucp".home}/.ssh/config | 118 | ln -fs ${builtins.toFile "ssh-config" config.services.uucp.sshConfig} ${config.users.users."uucp".home}/.ssh/config |
119 | ''; | 119 | ''; |
120 | 120 | ||
121 | system.activationScripts."uucp-logs" = '' | ||
122 | touch ${config.services.uucp.logFile} | ||
123 | chown ${config.users.users."uucp".name}:${config.users.users."uucp".group} ${config.services.uucp.logFile} | ||
124 | chmod 644 ${config.services.uucp.logFile} | ||
125 | touch ${config.services.uucp.statFile} | ||
126 | chown ${config.users.users."uucp".name}:${config.users.users."uucp".group} ${config.services.uucp.statFile} | ||
127 | chmod 644 ${config.services.uucp.statFile} | ||
128 | touch ${config.services.uucp.debugFile} | ||
129 | chown ${config.users.users."uucp".name}:${config.users.users."uucp".group} ${config.services.uucp.debugFile} | ||
130 | chmod 644 ${config.services.uucp.debugFile} | ||
131 | ''; | ||
132 | |||
121 | environment.etc."uucp/port" = { | 133 | environment.etc."uucp/port" = { |
122 | text = concatStringsSep "\n" (map portSpec config.services.uucp.remoteNodes); | 134 | text = concatStringsSep "\n" (map portSpec config.services.uucp.remoteNodes); |
123 | }; | 135 | }; |