summaryrefslogtreecommitdiff
path: root/tw/home/lap.scm
diff options
context:
space:
mode:
authorTimo Wilken2023-04-22 23:21:43 +0200
committerTimo Wilken2023-04-22 23:21:43 +0200
commit422cc04b0934bd3b1932aaa25f66e5aba48b799b (patch)
tree4cbeae40d6addd154362d998c9707db94433edd4 /tw/home/lap.scm
parente926ab1c1fafdc42632ac1c9deca3f49fb794c2a (diff)
Reinstate vdirsyncer cronjobs
With a long-enough TTL on the passwords in gpg-agent, this should work without popping up a password prompt every half hour.
Diffstat (limited to 'tw/home/lap.scm')
-rw-r--r--tw/home/lap.scm14
1 files changed, 8 insertions, 6 deletions
diff --git a/tw/home/lap.scm b/tw/home/lap.scm
index 962e378f..264e566b 100644
--- a/tw/home/lap.scm
+++ b/tw/home/lap.scm
@@ -12,6 +12,7 @@
#:use-module (gnu home services)
#:use-module (gnu home services desktop)
#:use-module (gnu home services guix)
+ #:use-module (gnu home services mcron)
#:use-module (gnu home services pm)
#:use-module (gnu home services shepherd)
#:use-module (gnu packages android)
@@ -56,12 +57,13 @@
("newsboat/config.catppuccin" ,catppuccin-newsboat)
("vdirsyncer/config" ,(local-file "files/vdirsyncer.conf"))))
- ;; These cron jobs are annoying because they pop up a password prompt every time they run.
- ;; (simple-service 'pim-cronjobs home-mcron-service-type
- ;; (list #~(job "15 */4 * * *" ; every four hours at HH:15
- ;; (string-append #$(file-append vdirsyncer "/bin/vdirsyncer") " metasync"))
- ;; #~(job "0,30 * * * *" ; every half hour
- ;; (string-append #$(file-append vdirsyncer "/bin/vdirsyncer") " sync"))))
+ ;; To avoid popping up a password prompt every time these run, gpg-agent
+ ;; needs a long-enough default-cache-ttl.
+ (simple-service 'pim-cronjobs home-mcron-service-type
+ (list #~(job "15 */4 * * *" ; every four hours at HH:15
+ (string-append #$(file-append vdirsyncer "/bin/vdirsyncer") " metasync"))
+ #~(job "0,30 * * * *" ; every half hour
+ (string-append #$(file-append vdirsyncer "/bin/vdirsyncer") " sync"))))
(simple-service 'mail-files home-files-service-type
`(;; The file from git main is newer than the one bundled with the