diff --git a/private_dot_gnupg/private_gpg-agent.conf b/private_dot_gnupg/private_gpg-agent.conf deleted file mode 100644 index 8fa3023..0000000 --- a/private_dot_gnupg/private_gpg-agent.conf +++ /dev/null @@ -1,3 +0,0 @@ -default-cache-ttl 300 -max-cache-ttl 999999 -pinentry-program /usr/bin/pinentry-qt diff --git a/private_dot_gnupg/private_gpg-agent.conf.tmpl b/private_dot_gnupg/private_gpg-agent.conf.tmpl new file mode 100644 index 0000000..e5fc63a --- /dev/null +++ b/private_dot_gnupg/private_gpg-agent.conf.tmpl @@ -0,0 +1,9 @@ +default-cache-ttl 300 +max-cache-ttl 999999 +{{ if eq .chezmoi.os "darwin" -}} +# macOS contents +pinentry-program /opt/homebrew/bin/pinentry-mac +{{ else if eq .chezmoi.os "linux" -}} +# Linux contents +pinentry-program /usr/bin/pinentry-qt +{{ end -}}