diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2017-02-19 14:42:33 +0300 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2017-02-19 14:42:33 +0300 |
commit | 02f3e3c62e039d0cd9b4cf55a18e0adbe8da521f (patch) | |
tree | a8d17c348f1001392857c85ae926bcfad9887206 /modules/apps/gnupg | |
parent | 825dce0d6ac9171225ed5bbbe217fb066175c7b5 (diff) | |
download | nixsap-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/gnupg')
-rw-r--r-- | modules/apps/gnupg/default.nix | 4 |
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 |