From 77628ec981e6c176f81308605b331e3b9ebccd13 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Wed, 18 Apr 2018 14:58:47 +0200 Subject: =?UTF-8?q?=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nix/module.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nix/module.nix b/nix/module.nix index 809b1df..1c94c8f 100644 --- a/nix/module.nix +++ b/nix/module.nix @@ -26,7 +26,7 @@ let serviceConfig = { ExecStart = let - sArgs = [ dCfg.path (toString dCfg.maxSize) ] + (optional (dCfg.monitorTimeout != null) dCfg.monitorTimeout); + sArgs = [ dCfg.path (toString dCfg.maxSize) ] + (optional (dCfg.monitorTimeout != null) (toString dCfg.monitorTimeout)); in "${pkgs.rolling-directory}/bin/rolling-directory ${escapeShellArgs sArgs}"; }; }; -- cgit v1.2.3