summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2025-11-08 15:40:22 -0600
committerCraig Jennings <c@cjennings.net>2025-11-08 15:40:22 -0600
commit5364e9ab36290a20fbb66de2d9ae31f531f822c0 (patch)
tree4783b84a843f9f235e1f56201082c78035446b7d
parent25a4e9e0a7cfea5d3dadbe8d55d3e7d80d0d7dc5 (diff)
feat:gpg-agent: enhance configuration with SSH support and caching
Add settings for SSH support, prolonged passphrase caching, and display preservation. Improve versatility and reliability of gpg-agent.
-rw-r--r--dotfiles/system/.gnupg/gpg-agent.conf14
1 files changed, 13 insertions, 1 deletions
diff --git a/dotfiles/system/.gnupg/gpg-agent.conf b/dotfiles/system/.gnupg/gpg-agent.conf
index 0e59963..6448665 100644
--- a/dotfiles/system/.gnupg/gpg-agent.conf
+++ b/dotfiles/system/.gnupg/gpg-agent.conf
@@ -1,6 +1,18 @@
+# Pinentry configuration
pinentry-program /usr/bin/pinentry-dmenu
pinentry-timeout 10
allow-loopback-pinentry
+
+# Cache passphrases for entire login session (400 days)
default-cache-ttl 34560000
max-cache-ttl 34560000
-no-allow-external-cache \ No newline at end of file
+
+# Enable SSH support (use gpg-agent for SSH keys too)
+enable-ssh-support
+
+# Prevent external programs from clearing cache
+no-allow-external-cache
+
+# Keep running even when no connections
+keep-display
+keep-tty