From 989285330f5690358a0647b4227fd1c85384ae91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charlotte=20=F0=9F=A6=9D=20Delenk?= Date: Sun, 20 Mar 2022 07:32:01 +0100 Subject: [PATCH] fix: Make the clean-s3-cache timer actually work --- config/services/hydra.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config/services/hydra.nix b/config/services/hydra.nix index 89091e97..b321bdc7 100644 --- a/config/services/hydra.nix +++ b/config/services/hydra.nix @@ -50,12 +50,14 @@ in enable = true; description = "Clean up S3 cache"; serviceConfig = { - ExecStart = "${clean-cache}/bin/clean-s3-cache"; + ExecStart = "${clean-cache}/bin/clean-s3-cache.py"; }; }; systemd.timers.clean-s3-cache = { enable = true; description = "Clean up S3 cache"; + requires = [ "clean-s3-cache.service" ]; + wantedBy = [ "multi-user.target" ]; timerConfig = { OnBootSec = 300; OnUnitActiveSec = 604800;