summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2021-04-01 09:05:10 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2021-04-01 09:05:10 +0200
commit4846a83008ec7fa5137a53fbda0e2b48f33a62f7 (patch)
treea8764a5f194442f07a44f1d5ade3b2eb74882cfc
parent8ab8e0b3feec36122c7026bc40aed026cc24dc2f (diff)
downloadnixos-4846a83008ec7fa5137a53fbda0e2b48f33a62f7.tar
nixos-4846a83008ec7fa5137a53fbda0e2b48f33a62f7.tar.gz
nixos-4846a83008ec7fa5137a53fbda0e2b48f33a62f7.tar.bz2
nixos-4846a83008ec7fa5137a53fbda0e2b48f33a62f7.tar.xz
nixos-4846a83008ec7fa5137a53fbda0e2b48f33a62f7.zip
faster calendar notifications
-rw-r--r--ymir.nix15
1 files changed, 15 insertions, 0 deletions
diff --git a/ymir.nix b/ymir.nix
index 980815fb..ea30967c 100644
--- a/ymir.nix
+++ b/ymir.nix
@@ -1195,4 +1195,19 @@ in rec {
1195 requires = ["postgresql.service"]; 1195 requires = ["postgresql.service"];
1196 after = ["postgresql.service"]; 1196 after = ["postgresql.service"];
1197 }; 1197 };
1198
1199 systemd.services."nextcloud-send-event-reminders" =
1200 let cfg = config.services.nextcloud;
1201 fpm = config.services.phpfpm.pools.nextcloud;
1202 in { environment = fpm.phpEnv;
1203 serviceConfig.Type = "oneshot";
1204 serviceConfig.User = "nextcloud";
1205 serviceConfig.ExecStart = "${fpm.phpPackage}/bin/php -f ${cfg.package}/cron.php";
1206 };
1207 systemd.timers."nextcloud-send-event-reminders" = {
1208 wantedBy = [ "timers.target" ];
1209 timerConfig.OnBootSec = "5m";
1210 timerConfig.OnUnitActiveSec = "30s";
1211 timerConfig.Unit = "nextcloud-send-event-reminders.service";
1212 };
1198} 1213}