diff --git a/home/pass.nix b/home/pass.nix index 40bf8b0..6ff2f37 100644 --- a/home/pass.nix +++ b/home/pass.nix @@ -16,9 +16,13 @@ # GPG agent settings (only for GPG/pass, NOT for SSH) services.gpg-agent = { enable = true; - # Neither gpg-agent nor pinentry-mac/Keychain may cache passphrases. + # Require a typed passphrase for the personal store on every decrypt. + # pinentry-mac can silently retrieve it from Keychain even with TTL=0. defaultCacheTtl = 0; maxCacheTtl = 0; - extraConfig = "no-allow-external-cache"; + extraConfig = '' + no-allow-external-cache + pinentry-program ${pkgs.pinentry-curses}/bin/pinentry-curses + ''; }; }