Skip to content

Commit

Permalink
gpg-agent: init
Browse files Browse the repository at this point in the history
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
  • Loading branch information
trueNAHO committed Feb 3, 2025
1 parent b7f50a5 commit 2078e2d
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions modules/gpg-agent/hm.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
config,
lib,
pkgs,
...
}:

{
options.stylix.targets.gpg-agent.enable =
config.lib.stylix.mkEnableTarget "gpg-agent" true;

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

0 comments on commit 2078e2d

Please sign in to comment.