From 9300df10dd4868bd900eb2341e04a668a5625535 Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Wed, 11 Dec 2024 13:40:38 +0300 Subject: [PATCH] host/istal: add cron job to delete renovate cache every day --- hosts/istal/services/renovate.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/hosts/istal/services/renovate.nix b/hosts/istal/services/renovate.nix index c9913c7..0459002 100644 --- a/hosts/istal/services/renovate.nix +++ b/hosts/istal/services/renovate.nix @@ -4,10 +4,17 @@ age.secrets.renovate-gitea-token.file = ./renovate-gitea-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 = { enable = true; package = pkgs.unstable.renovate; - schedule = "0..3,10..23:00"; + schedule = "0..2,10..23:00"; credentials = { RENOVATE_TOKEN = config.age.secrets.renovate-gitea-token.path; GITHUB_COM_TOKEN = config.age.secrets.renovate-github-token.path;