diff options
-rw-r--r-- | ymir.nix | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -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 | } |