diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2021-04-01 09:05:10 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2021-04-01 09:05:10 +0200 |
commit | 4846a83008ec7fa5137a53fbda0e2b48f33a62f7 (patch) | |
tree | a8764a5f194442f07a44f1d5ade3b2eb74882cfc /ymir.nix | |
parent | 8ab8e0b3feec36122c7026bc40aed026cc24dc2f (diff) | |
download | nixos-4846a83008ec7fa5137a53fbda0e2b48f33a62f7.tar nixos-4846a83008ec7fa5137a53fbda0e2b48f33a62f7.tar.gz nixos-4846a83008ec7fa5137a53fbda0e2b48f33a62f7.tar.bz2 nixos-4846a83008ec7fa5137a53fbda0e2b48f33a62f7.tar.xz nixos-4846a83008ec7fa5137a53fbda0e2b48f33a62f7.zip |
faster calendar notifications
Diffstat (limited to 'ymir.nix')
-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 | } |