guix-mirrors/etc/guix-gc.timer.in
Efraim Flashner 61ca5bdbce
nix: Install guix-gc systemd timer.
* nix/local.mk (nodist_systemdservice_DATA): Add etc/guix-gc.timer.
(etc/guix-gc.timer): Add rule to generate file.
(EXTRA_DIST): Add guix-gc.timer.in, remove guix-gc.timer.
* gitignore: Add etc/guix-gc.timer.

Change-Id: I361aef660fe7d9803f58f4e31e16d8db595d1853
2025-03-02 14:21:59 +02:00

15 lines
362 B
SYSTEMD

# This is a "timer unit file" for the systemd init system to trigger
# 'guix-gc.service' periodically. Drop it in /etc/systemd/system or similar
# together with 'guix-gc.service' to set it up.
[Unit]
Description=Discard unused Guix store items
[Timer]
OnCalendar=weekly
AccuracySec=1h
Persistent=true
RandomizedDelaySec=6000
[Install]
WantedBy=timers.target