From ead0fb7562ff66be20d77fe59f4cf4c42b24f636 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Wed, 18 Apr 2018 14:58: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 | 4 ++-- 1 file 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 }; }; - dirService = dCfg: with dCfg; nameValuePair ("rolling-directory@" + escapeSystemdPath path) { + dirService = dCfg: nameValuePair ("rolling-directory@" + escapeSystemdPath dCfg.path) { wantedBy = [ "multi-user.target" ]; serviceConfig = { ExecStart = let - sArgs = [ path (toString maxSize) ] + (optional (monitorTimeout != null) monitorTimeout); + sArgs = [ dCfg.path (toString dCfg.maxSize) ] + (optional (dCfg.monitorTimeout != null) dCfg.monitorTimeout); in "${pkgs.rolling-directory}/bin/rolling-directory ${escapeShellArgs sArgs}"; }; }; -- cgit v1.2.3