Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gpg-agent: init #831

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

gpg-agent: init #831

wants to merge 1 commit into from

Conversation

trueNAHO
Copy link
Collaborator

@trueNAHO trueNAHO commented Feb 3, 2025

With commit b7f50a56c3cc ("qt: add flexible theming with sensible
defaults (#780)"), the Qt pinentry package is a reasonable default
value:

> NixOS stopped building gtk2 pinentry by default in
> https://github.com/NixOS/nixpkgs/pull/270266 and there does not appear
> to be a reasonable other default.
>
> -- home-manager, "gpg-agent: don't set a default for pinentry",
>    https://github.com/nix-community/home-manager/commit/458544594ba7f0333cf5718045ee7a8eaf5de433

Closes: https://github.com/danth/stylix/issues/184

With commit b7f50a5 ("qt: add flexible theming with sensible
defaults (danth#780)"), the Qt pinentry package is a reasonable default
value:

> NixOS stopped building gtk2 pinentry by default in
> NixOS/nixpkgs#270266 and there does not appear
> to be a reasonable other default.
>
> -- home-manager, "gpg-agent: don't set a default for pinentry",
>    nix-community/home-manager@4585445

Closes: danth#184
@trueNAHO trueNAHO requested a review from danth February 3, 2025 19:04
@trueNAHO
Copy link
Collaborator Author

Friendly ping: @danth


config = lib.mkIf (
config.stylix.enable && config.stylix.targets.gpg-agent.enable
) { services.gpg-agent.pinentryPackage = pkgs.pinentry-qt; };
Copy link
Owner

@danth danth Feb 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't this go against the usual policy of not changing non-theming-related settings?

This may break the default pinentry in GNOME, which currently looks like this:

GNOME-3 pinentry

(which follows my chosen color scheme)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This may break the default pinentry in GNOME

Does it still look like that after restarting GNOME?

Copy link
Collaborator Author

@trueNAHO trueNAHO Feb 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The

echo GETPIN | nix run nixpkgs#pinentry-qt

command results in the following with this PR:

image

Otherwise, it is not themed at all.

AFAIK, the graphical environment (Hyprland in my case) needs to be restarted for the Qt changes from this PR to be applied.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants