From f3c7026c2e815c6aa4069a843975f25e157864bd Mon Sep 17 00:00:00 2001 From: Timo Wilken Date: Mon, 21 Nov 2022 23:51:08 +0100 Subject: Run guix gc every evening --- home-configuration.scm | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'home-configuration.scm') diff --git a/home-configuration.scm b/home-configuration.scm index 47e9d112..dcd2c561 100644 --- a/home-configuration.scm +++ b/home-configuration.scm @@ -27,6 +27,7 @@ (gnu home services) (gnu home services desktop) (gnu home services guix) + (gnu home services mcron) (gnu home services pm) (gnu home services shells) (gnu home services shepherd) @@ -462,6 +463,13 @@ replacement spec (to which `regexp-substitute/global' is applied)." (stop #~(lambda _ (invoke "gpg-connect-agent" "killagent" "/bye")))))) + (simple-service + 'crontab home-mcron-service-type + ;; I don't think jobs run on boot if they would have run when the + ;; computer was turned off, so choose a time when the computer is + ;; probably turned on. + (list #~(job "0 21 * * *" "guix gc -d 2w -F 25G"))) + ;; Configuration files for terminal-only programs in $XDG_CONFIG_HOME. (service home-xdg-configuration-files-service-type -- cgit v1.2.3