From 57106b1fbe851f57c4cf63a6af3bddfd69cbe533 Mon Sep 17 00:00:00 2001 From: Sergei Poljanski Date: Tue, 13 Oct 2026 08:24:00 +0400 Subject: [PATCH] programs: use the GNOME pinentry for gpg-agent With pinentry-curses the passphrase prompt needs a terminal, so a signed commit made from an editor or any tool without one fails with "gpg: signing failed: No such file or directory". pinentry-gnome3 asks in a GNOME dialog instead (and still falls back to curses without a display). Assisted-by: Claude:opus-5 --- modules/programs.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/programs.nix b/modules/programs.nix index 1bde50a..700e774 100644 --- a/modules/programs.nix +++ b/modules/programs.nix @@ -16,7 +16,8 @@ programs.gnupg.agent = { enable = true; enableSSHSupport = true; - pinentryPackage = pkgs.pinentry-curses; + # GNOME dialog: also prompts for commits signed from editors and tools + pinentryPackage = pkgs.pinentry-gnome3; }; # Git configuration