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; }; }; }