diff options
-rw-r--r-- | nix/module.nix | 4 |
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 | }; |