From b219b5cc6b8e2c3d9e302f04f38d4b48f30d1086 Mon Sep 17 00:00:00 2001 From: Simon Rieger Date: Sun, 27 Aug 2023 17:55:31 +0200 Subject: [PATCH] add template to gpg-agent.conf --- private_dot_gnupg/private_gpg-agent.conf | 3 --- private_dot_gnupg/private_gpg-agent.conf.tmpl | 9 +++++++++ 2 files changed, 9 insertions(+), 3 deletions(-) delete mode 100644 private_dot_gnupg/private_gpg-agent.conf create mode 100644 private_dot_gnupg/private_gpg-agent.conf.tmpl 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 -}}