From 02f3e3c62e039d0cd9b4cf55a18e0adbe8da521f Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Sun, 19 Feb 2017 14:42:33 +0300 Subject: 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). --- modules/apps/gnupg/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'modules/apps') 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 -- cgit v1.2.3