diff options
Diffstat (limited to 'hm/gpg/default.nix')
-rw-r--r-- | hm/gpg/default.nix | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/hm/gpg/default.nix b/hm/gpg/default.nix index aecb4d4..12166e6 100644 --- a/hm/gpg/default.nix +++ b/hm/gpg/default.nix @@ -5,11 +5,16 @@ }: { programs.gpg = { enable = true; + scdaemonSettings = { + disable-ccid = true; + }; }; services.gpg-agent = { enable = true; - defaultCacheTtl = 60 * 5; - defaultCacheTtlSsh = 60 * 5; + defaultCacheTtl = 60 * 50; + defaultCacheTtlSsh = 60 * 50; + maxCacheTtl = 60 * 50; + maxCacheTtlSsh = 60 * 50; pinentryPackage = pkgs.pinentry-curses; enableSshSupport = true; sshKeys = ["4077454831C98FE4BE4A9C167186C5A63615B790"]; @@ -20,7 +25,7 @@ SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) gpg-connect-agent /bye ''; - home.sessionVariables = { - GNUPGHOME = lib.mkForce ""; - }; + #home.sessionVariables = { + # GNUPGHOME = lib.mkForce ""; + #}; } |