From ffa8199ba43f52697c48608d8ce65a4a606a1d74 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 30 May 2016 02:12:54 +0200 Subject: =?UTF-8?q?systemd=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ymir.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/ymir.nix b/ymir.nix index b9da44f0..8b6d29b8 100644 --- a/ymir.nix +++ b/ymir.nix @@ -425,14 +425,19 @@ in rec { networks = ["127.0.0.0/8" "[::ffff:127.0.0.0]/104" "[::1]/128" "10.141.0.0/16"]; }; - systemd.timers."mlmmj-maintd" = { - description = "mlmmj maintenance daemon"; + system.timers."mlmmj-maintd" = { + description = "run mlmmj maintenance daemon"; wantedBy = [ "multi-user.target" ]; + timerConfig = { OnStartupSec = "7200"; }; + }; + + systemd.services."mlmmj-maintd" = { + description = "mlmmj maintenance daemon"; - unitConfig = { + serviceConfig = { User = "mlmmj"; Group = "mlmmj"; ExecStart = "${pkgs.mlmmj}/bin/mlmmj-maintd -F -d /var/spool/lists"; -- cgit v1.2.3