host/istal: add cron job to delete renovate cache every day

This commit is contained in:
Dmitriy Pleshevskiy 2024-12-11 13:40:38 +03:00
parent e3c55b0e1e
commit 9300df10dd
Signed by: pleshevskiy
GPG key ID: 17041163DA10A9A2

View file

@ -4,10 +4,17 @@
age.secrets.renovate-gitea-token.file = ./renovate-gitea-token.age; age.secrets.renovate-gitea-token.file = ./renovate-gitea-token.age;
age.secrets.renovate-github-token.file = ./renovate-github-token.age; age.secrets.renovate-github-token.file = ./renovate-github-token.age;
services.cron = {
enable = true;
systemCronJobs = [
"0 3 * * * root rm -rf /var/cache/renovate /var/lib/renovate"
];
};
services.renovate = { services.renovate = {
enable = true; enable = true;
package = pkgs.unstable.renovate; package = pkgs.unstable.renovate;
schedule = "0..3,10..23:00"; schedule = "0..2,10..23:00";
credentials = { credentials = {
RENOVATE_TOKEN = config.age.secrets.renovate-gitea-token.path; RENOVATE_TOKEN = config.age.secrets.renovate-gitea-token.path;
GITHUB_COM_TOKEN = config.age.secrets.renovate-github-token.path; GITHUB_COM_TOKEN = config.age.secrets.renovate-github-token.path;