summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2018-04-18 14:58:27 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2018-04-18 14:58:27 +0200
commitead0fb7562ff66be20d77fe59f4cf4c42b24f636 (patch)
tree749779759ddb3b4e37e0a6d9ccb4313380e34332
parente2818a984d87f513f05b3f71625fc4a027f12015 (diff)
downloadutils-ead0fb7562ff66be20d77fe59f4cf4c42b24f636.tar
utils-ead0fb7562ff66be20d77fe59f4cf4c42b24f636.tar.gz
utils-ead0fb7562ff66be20d77fe59f4cf4c42b24f636.tar.bz2
utils-ead0fb7562ff66be20d77fe59f4cf4c42b24f636.tar.xz
utils-ead0fb7562ff66be20d77fe59f4cf4c42b24f636.zip
-rw-r--r--nix/module.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/nix/module.nix b/nix/module.nix
index 401b956..809b1df 100644
--- a/nix/module.nix
+++ b/nix/module.nix
@@ -21,12 +21,12 @@ let
21 }; 21 };
22 }; 22 };
23 23
24 dirService = dCfg: with dCfg; nameValuePair ("rolling-directory@" + escapeSystemdPath path) { 24 dirService = dCfg: nameValuePair ("rolling-directory@" + escapeSystemdPath dCfg.path) {
25 wantedBy = [ "multi-user.target" ]; 25 wantedBy = [ "multi-user.target" ];
26 26
27 serviceConfig = { 27 serviceConfig = {
28 ExecStart = let 28 ExecStart = let
29 sArgs = [ path (toString maxSize) ] + (optional (monitorTimeout != null) monitorTimeout); 29 sArgs = [ dCfg.path (toString dCfg.maxSize) ] + (optional (dCfg.monitorTimeout != null) dCfg.monitorTimeout);
30 in "${pkgs.rolling-directory}/bin/rolling-directory ${escapeShellArgs sArgs}"; 30 in "${pkgs.rolling-directory}/bin/rolling-directory ${escapeShellArgs sArgs}";
31 }; 31 };
32 }; 32 };