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;