From 85dbefc18e832d78e62ddb1e4807cb0e867c2487 Mon Sep 17 00:00:00 2001 From: Yorick Barbanneau Date: Wed, 9 Apr 2025 19:40:30 +0200 Subject: [PATCH] feat(home-manager): configure gpg-agent --- modules/home-manager/application/gnupg/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/home-manager/application/gnupg/default.nix b/modules/home-manager/application/gnupg/default.nix index 77f341d..53a24f1 100644 --- a/modules/home-manager/application/gnupg/default.nix +++ b/modules/home-manager/application/gnupg/default.nix @@ -37,8 +37,13 @@ in enable = true; enableScDaemon = true; enableZshIntegration = true; - pinentryPackage = pkgs.pinentry-gnome3; + pinentry.package = pkgs.pinentry-gnome3; enableSshSupport = cfg.enableSshSupport; + maxCacheTtl = 60 * 60 * 2; + maxCacheTtlSsh = 60 * 60 * 2; + defaultCacheTtl = 60 * 60; + defaultCacheTtlSsh = 60 * 60; + noAllowExternalCache = true; }; home.sessionVariablesExtra = lib.mkIf cfg.enableSshSupport ''