From 148685587f889134113ac64a528817215041433d Mon Sep 17 00:00:00 2001 From: Christian Harke Date: Fri, 28 Jun 2024 23:19:46 +0200 Subject: [PATCH] Refactor gpg pinentry config --- home/users/christian/gpg/default.nix | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/home/users/christian/gpg/default.nix b/home/users/christian/gpg/default.nix index 75bda4d5..300c0548 100644 --- a/home/users/christian/gpg/default.nix +++ b/home/users/christian/gpg/default.nix @@ -18,13 +18,8 @@ in }; config = mkIf cfg.enable { - - home.file.".gnupg/gpg-agent.conf" = { - text = '' - pinentry-program ${getExe pinentryPkg} - ''; - }; - programs.gpg.enable = true; + + services.gpg-agent.pinentryPackage = pinentryPkg; }; }