diff --git a/hosts/sakowsl/config/gpg-agent.conf b/hosts/sakowsl/config/gpg-agent.conf deleted file mode 100644 index d37ed30d..00000000 --- a/hosts/sakowsl/config/gpg-agent.conf +++ /dev/null @@ -1 +0,0 @@ -pinentry-program "/mnt/c/Program Files (x86)/Gpg4win/bin/pinentry.exe" diff --git a/hosts/sakowsl/configuration.nix b/hosts/sakowsl/configuration.nix index 84c67ab2..d774236f 100644 --- a/hosts/sakowsl/configuration.nix +++ b/hosts/sakowsl/configuration.nix @@ -53,9 +53,12 @@ xdg.configFile.git = { source = ../../config/git; }; + programs.gnupg.agent.extraconfig = '' + pinentry-program "/mnt/c/Program Files (x86)/Gpg4win/bin/pinentry.exe" + ''; home.file = { # pinentry needs to point to gpg4win's qt pinentry to work - ".gnupg/gpg-agent.conf" = { + "gpg-agent.conf" = { enable = true; source = ./config/gpg-agent.conf; };