aboutsummaryrefslogtreecommitdiff
path: root/modules/apps
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2017-02-19 14:42:33 +0300
committerIgor Pashev <pashev.igor@gmail.com>2017-02-19 14:42:33 +0300
commit02f3e3c62e039d0cd9b4cf55a18e0adbe8da521f (patch)
treea8d17c348f1001392857c85ae926bcfad9887206 /modules/apps
parent825dce0d6ac9171225ed5bbbe217fb066175c7b5 (diff)
downloadnixsap-02f3e3c62e039d0cd9b4cf55a18e0adbe8da521f.tar.gz
gnupg app: set --max-cache-ttl to something big
From the gpg-agent man page: Set the maximum time a cache entry is valid to n seconds. After this time a cache entry will be expired even if it has been accessed recently or has been set using gpg-preset-passphrase. The default is 2 hours (7200 seconds).
Diffstat (limited to 'modules/apps')
-rw-r--r--modules/apps/gnupg/default.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/apps/gnupg/default.nix b/modules/apps/gnupg/default.nix
index 7330b2a..7749990 100644
--- a/modules/apps/gnupg/default.nix
+++ b/modules/apps/gnupg/default.nix
@@ -42,11 +42,13 @@ let
yes
CONF
- # XXX forking:
+ # XXX forking.
+ # XXX is 30 years enough?
${cfg.package}/bin/gpg-agent \
--homedir '${cfg.home}' \
--allow-preset-passphrase \
--batch \
+ --max-cache-ttl 999999999 \
--quiet \
--daemon