summaryrefslogtreecommitdiff
path: root/tw/home/files
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/files
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/files')
-rw-r--r--tw/home/files/gpg-agent.conf5
1 files changed, 5 insertions, 0 deletions
diff --git a/tw/home/files/gpg-agent.conf b/tw/home/files/gpg-agent.conf
index 6f476443..80553267 100644
--- a/tw/home/files/gpg-agent.conf
+++ b/tw/home/files/gpg-agent.conf
@@ -1,4 +1,9 @@
pinentry-program pinentry-rofi
+# Keep passphrase cached for longer, so that mcron jobs (e.g. restic,
+# vdirsyncer) can access the password store. Vdirsyncer should run every half
+# hour to extend the default-cache-ttl.
+default-cache-ttl 2100 # 35 min
+max-cache-ttl 43200 # 12 h
# Needed if spawning lots of parallel gpg --decrypt processes.
# https://dev.gnupg.org/T3530
auto-expand-secmem