diff --git a/services/nextcloud.nix b/services/nextcloud.nix index 593cc43..f761e32 100644 --- a/services/nextcloud.nix +++ b/services/nextcloud.nix @@ -193,18 +193,18 @@ in services.cron.enable = true; services.redis.servers."".enable = true; -#systemd.timers.nextcloud-cron = { -# wantedBy = [ "timers.target" ]; -# timerConfig.OnBootSec = "5m"; -# timerConfig.OnUnitActiveSec = "15m"; -# timerConfig.Unit = "nextcloud-cron.service"; -#}; +systemd.timers.nextcloud-cron = { + wantedBy = [ "timers.target" ]; + timerConfig.OnBootSec = "5m"; + timerConfig.OnUnitActiveSec = "15m"; + timerConfig.Unit = "nextcloud-cron.service"; +}; -#systemd.services.nextcloud-cron = { -# environment.NEXTCLOUD_CONFIG_DIR = "/var/www/nextcloud/config"; -# serviceConfig.Type = "oneshot"; -# serviceConfig.User = "nextcloud"; -# serviceConfig.ExecStart = "${myPhp}/bin/php --define apc.enable_cli=1 -f /var/www/nextcloud/cron.php"; -#}; +systemd.services.nextcloud-cron = { + environment.NEXTCLOUD_CONFIG_DIR = "/var/www/nextcloud/config"; + serviceConfig.Type = "oneshot"; + serviceConfig.User = "nextcloud"; + serviceConfig.ExecStart = "${myPhp}/bin/php --define apc.enable_cli=1 -f /var/www/nextcloud/cron.php"; +}; }