summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Wilken2022-11-21 23:51:08 +0100
committerTimo Wilken2022-11-22 00:13:24 +0100
commitf3c7026c2e815c6aa4069a843975f25e157864bd (patch)
tree092811c2f3da075325d864f73031dc65c0c4852b
parent54b73d182bf3800b1a71ac0009346d443e55336e (diff)
Run guix gc every evening
-rw-r--r--home-configuration.scm8
1 files changed, 8 insertions, 0 deletions
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