From e2818a984d87f513f05b3f71625fc4a027f12015 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Wed, 18 Apr 2018 14:54:21 +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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nix/module.nix') diff --git a/nix/module.nix b/nix/module.nix index 05c092d..401b956 100644 --- a/nix/module.nix +++ b/nix/module.nix @@ -26,8 +26,8 @@ let serviceConfig = { ExecStart = let - args = [ path (toString maxSize) ] + optional (monitorTimeout != null) monitorTimeout; - in "${pkgs.rolling-directory}/bin/rolling-directory ${escapeShellArgs args}"; + sArgs = [ path (toString maxSize) ] + (optional (monitorTimeout != null) monitorTimeout); + in "${pkgs.rolling-directory}/bin/rolling-directory ${escapeShellArgs sArgs}"; }; }; in { -- cgit v1.2.3