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; }; }