From b959cba6fe540d24d98230b217bdf6c0f38d12a7 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Sat, 19 Aug 2023 06:59:23 +0000 Subject: [PATCH] fix gpg pinentry --- hosts/sakowsl/config/gpg-agent.conf | 1 + hosts/sakowsl/configuration.nix | 9 +++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 hosts/sakowsl/config/gpg-agent.conf diff --git a/hosts/sakowsl/config/gpg-agent.conf b/hosts/sakowsl/config/gpg-agent.conf new file mode 100644 index 00000000..d37ed30d --- /dev/null +++ b/hosts/sakowsl/config/gpg-agent.conf @@ -0,0 +1 @@ +pinentry-program "/mnt/c/Program Files (x86)/Gpg4win/bin/pinentry.exe" diff --git a/hosts/sakowsl/configuration.nix b/hosts/sakowsl/configuration.nix index 6de073f8..84c67ab2 100644 --- a/hosts/sakowsl/configuration.nix +++ b/hosts/sakowsl/configuration.nix @@ -53,6 +53,13 @@ xdg.configFile.git = { source = ../../config/git; }; + home.file = { + # pinentry needs to point to gpg4win's qt pinentry to work + ".gnupg/gpg-agent.conf" = { + enable = true; + source = ./config/gpg-agent.conf; + }; + }; }; # bare minimum @@ -69,8 +76,6 @@ # litearlly! ! ! ! ! ! programs.gnupg.agent = { enable = true; - pinentryFlavor = "gnome3"; - # enableSSHSupport = true; }; environment.noXlibs = lib.mkForce false;