From 38d2b683db825a5da7ad06e8e0844549d36443be Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Sun, 24 Dec 2023 22:31:41 +0400 Subject: [PATCH] use windows pinentry for wsl gpg --- hosts/sakowsl/configuration.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hosts/sakowsl/configuration.nix b/hosts/sakowsl/configuration.nix index 1823f891..54ea42aa 100644 --- a/hosts/sakowsl/configuration.nix +++ b/hosts/sakowsl/configuration.nix @@ -64,7 +64,10 @@ }; programs.gnupg.agent = { enable = true; - pinentryFlavor = "gnome3"; + pinentryFlavor = null; + settings = { + pinentry-program = "/mnt/c/Program Files (x86)/Gpg4win/bin/pinentry.exe"; + }; }; # bare minimum environment.systemPackages = with pkgs; [