fix(gpg): fix password requests when signing with SSH keys

This commit is contained in:
2025-12-07 15:02:21 +01:00
parent 93f009852f
commit 1a43dcdad4

View File

@@ -11,10 +11,7 @@ in {
enable = mkEnableOption "Enable GPG"; enable = mkEnableOption "Enable GPG";
pinentry.package = mkOption { pinentry.package = mkOption {
type = types.package; type = types.package;
default = default = pkgs.pinentry-gnome3;
if config.home.dev.editors.emacs.enable
then pkgs.pinentry-emacs
else pkgs.pinentry-gtk2;
}; };
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
@@ -25,7 +22,7 @@ in {
}; };
services.gpg-agent = { services.gpg-agent = {
enable = true; enable = true;
enableSshSupport = true; enableSshSupport = false;
pinentry.package = cfg.pinentry.package; pinentry.package = cfg.pinentry.package;
}; };
}; };