From 055452b2ba6845b4205a99064e69db1d06a90014 Mon Sep 17 00:00:00 2001 From: Nickiel12 Date: Wed, 15 Nov 2023 21:27:02 -0800 Subject: [PATCH] added nightly preview render --- hosts/Alaska/modules/nextcloud.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/hosts/Alaska/modules/nextcloud.nix b/hosts/Alaska/modules/nextcloud.nix index ac3735f..25405fb 100644 --- a/hosts/Alaska/modules/nextcloud.nix +++ b/hosts/Alaska/modules/nextcloud.nix @@ -74,4 +74,15 @@ requires = ["postgresql.service"]; after = ["postgresql.service"]; }; + + systemd.services.nextcloud-preview = { + description = "Generate previews for all images that haven't been rendered"; + path = with pkgs; [ + config.services.nextcloud.occ + ]; + script = '' + nextcloud-occ preview:pre-generate + ''; + startAt = "01:00:00"; + }; }