From c6d84a192db8abf037ad08de0379177e5f56b952 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Wed, 18 Apr 2018 15:00:27 +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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'nix') diff --git a/nix/module.nix b/nix/module.nix index 1c94c8f..10c68ff 100644 --- a/nix/module.nix +++ b/nix/module.nix @@ -25,9 +25,9 @@ let wantedBy = [ "multi-user.target" ]; serviceConfig = { - ExecStart = let - sArgs = [ dCfg.path (toString dCfg.maxSize) ] + (optional (dCfg.monitorTimeout != null) (toString dCfg.monitorTimeout)); - in "${pkgs.rolling-directory}/bin/rolling-directory ${escapeShellArgs sArgs}"; + ExecStart = '' + ${pkgs.rolling-directory}/bin/rolling-directory %I ${toString dCfg.maxSize} monitor ${optionalString (dCfg.monitorTimeout != null) (toString dCfg.monitorTimeout)} + ''; }; }; in { -- cgit v1.2.3