add nextcloud-client and pre-gen cron

Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
This commit is contained in:
ahuston-0 2024-06-11 19:20:44 -04:00 committed by Alice Huston
parent d323c88583
commit 2853f786a8
2 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,17 @@
{
config,
lib,
pkgs,
...
}:
{
services.cron.enable = true;
services.cron.cronFiles = [ /etc/rad-dev/nextcloud-cron ];
environment.etc.nextcloud-cron = {
text = ''
*/10 * * * * docker ps --format "{{.Names}}" | grep -q "^nextcloud-nextcloud-1$" && docker exec --user www-data nextcloud-nextcloud-1 php occ preview:pre-generate
'';
target = /etc/rad-dev/nextcloud-cron;
};
}

View File

@ -53,5 +53,7 @@
nodejs_20
nodePackages.prettier
treefmt
nextcloud-client
];
}