From 1beb00130d019e7f8989712185f4daa0cbc42868 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Sat, 19 Aug 2023 07:03:26 +0000 Subject: [PATCH] add it to homemanager instead --- hosts/sakowsl/config/gpg-agent.conf | 1 - hosts/sakowsl/configuration.nix | 5 ++++- 2 files changed, 4 insertions(+), 2 deletions(-) delete mode 100644 hosts/sakowsl/config/gpg-agent.conf 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; };