summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2016-04-27 12:44:17 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2016-04-27 12:44:17 +0200
commitd3df4cba29788a3b5520064415e34d9cd1e34277 (patch)
treeae7050d1bcb93e13bcdb40134e71e379cf336d55
parentc1c1060696b9e1bf4c8a952cd6ff9fec88121b76 (diff)
downloadnixos-d3df4cba29788a3b5520064415e34d9cd1e34277.tar
nixos-d3df4cba29788a3b5520064415e34d9cd1e34277.tar.gz
nixos-d3df4cba29788a3b5520064415e34d9cd1e34277.tar.bz2
nixos-d3df4cba29788a3b5520064415e34d9cd1e34277.tar.xz
nixos-d3df4cba29788a3b5520064415e34d9cd1e34277.zip
setup logfiles on startup
-rw-r--r--custom/uucp.nix12
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 };