From 7b8ff04f5d257d5fbea02720f19160a5c7ab0d0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Geoffrey=20=E2=80=9CFrogeye=E2=80=9D=20Preud=27homme?= Date: Mon, 29 Apr 2024 12:26:39 +0200 Subject: [PATCH] gpg: Increase passphrase remembering timeout Sweet relief. --- hm/gpg/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hm/gpg/default.nix b/hm/gpg/default.nix index 45413e2..fe701b3 100644 --- a/hm/gpg/default.nix +++ b/hm/gpg/default.nix @@ -34,13 +34,17 @@ trust = "ultimate"; }]; }; - services.gpg-agent = { + services.gpg-agent = rec { enableBashIntegration = true; enableZshIntegration = true; pinentryFlavor = "gnome3"; # gnome3 is nicer, but requires gcr as a dbus package. # Which is in my NixOS config, and on non-NixOS too. # It will fall back to ncurses when running in non-graphics mode. + defaultCacheTtl = 3600; + defaultCacheTtlSsh = defaultCacheTtl; + maxCacheTtl = 3*3600; + maxCacheTtlSsh = maxCacheTtl; }; }; }