From 1a062a3702c363c4e769758b18e55e70626e22ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20Bori?= Date: Fri, 1 Nov 2024 16:00:35 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20(gpg):=20Fixed=20an=20issue=20wi?= =?UTF-8?q?th=20the=20gpg=20agent?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It was not able to find a pinentry --- modules/home/cli/programs/gpg/default.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/modules/home/cli/programs/gpg/default.nix b/modules/home/cli/programs/gpg/default.nix index e4b78ba..0ed54a5 100644 --- a/modules/home/cli/programs/gpg/default.nix +++ b/modules/home/cli/programs/gpg/default.nix @@ -22,11 +22,12 @@ in config = mkIf cfg.enable { home.packages = with pkgs; [ kleopatra ]; - programs = { - gpg = enabled; - }; + programs.gpg = enabled; - services.gpg-agent = enabled; + services.gpg-agent = { + enable = true; + pinentryPackage = pkgs.pinentry-curses; + }; sops.secrets = mkIf (config."${namespace}".services.sops.enable && cfg.useSops) { pgp_key = {