feat(attic): add daily garbage collection timer
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
510e3505a8
commit
13a386fe98
1 changed files with 21 additions and 0 deletions
|
|
@ -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";
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue