chore(octoprint): clean up old timelapses

This commit is contained in:
arcnmx 2024-07-22 11:49:01 -07:00
parent d91e54a78d
commit 4399603d0c

View file

@ -144,7 +144,7 @@ in {
ffmpegThreads = 2;
timelapse = {
fps = 25;
options.interval = 4;
options.interval = 5;
postRoll = 0;
type = "timed";
};
@ -191,7 +191,12 @@ in {
];
};
systemd.services.octoprint = mkIf cfg.enable {
restartIfChanged = false;
systemd = mkIf cfg.enable {
services.octoprint.restartIfChanged = false;
tmpfiles.rules = [
# clean up stale timelapse videos, since they can get pretty large
"e ${cfg.stateDir}/timelapse - - - 10d -"
# TODO: consider also cleaning the `uploads` gcode folder?
];
};
}