feat(attic): add daily garbage collection timer

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Harald Hoyer 2026-03-25 12:07:44 +01:00
parent 510e3505a8
commit 13a386fe98

View file

@ -61,4 +61,25 @@
}; };
}; };
}; };
systemd.services.atticd-gc = {
description = "Attic garbage collection";
requires = [ "atticd.service" ];
after = [ "atticd.service" ];
serviceConfig = {
Type = "oneshot";
ExecStart = "${pkgs.attic-server}/bin/atticd-atticadm gc";
EnvironmentFile = "/etc/atticd.env";
};
};
systemd.timers.atticd-gc = {
description = "Daily Attic garbage collection";
wantedBy = [ "timers.target" ];
timerConfig = {
OnCalendar = "daily";
Persistent = true;
RandomizedDelaySec = "1h";
};
};
} }