From 4846a83008ec7fa5137a53fbda0e2b48f33a62f7 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 1 Apr 2021 09:05:10 +0200 Subject: faster calendar notifications --- ymir.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/ymir.nix b/ymir.nix index 980815fb..ea30967c 100644 --- a/ymir.nix +++ b/ymir.nix @@ -1195,4 +1195,19 @@ in rec { requires = ["postgresql.service"]; after = ["postgresql.service"]; }; + + systemd.services."nextcloud-send-event-reminders" = + let cfg = config.services.nextcloud; + fpm = config.services.phpfpm.pools.nextcloud; + in { environment = fpm.phpEnv; + serviceConfig.Type = "oneshot"; + serviceConfig.User = "nextcloud"; + serviceConfig.ExecStart = "${fpm.phpPackage}/bin/php -f ${cfg.package}/cron.php"; + }; + systemd.timers."nextcloud-send-event-reminders" = { + wantedBy = [ "timers.target" ]; + timerConfig.OnBootSec = "5m"; + timerConfig.OnUnitActiveSec = "30s"; + timerConfig.Unit = "nextcloud-send-event-reminders.service"; + }; } -- cgit v1.2.3