Skip to content

Commit

Permalink
nixos/gnupg: choose the pinentry variant that has the selected flavor…
Browse files Browse the repository at this point in the history
… definitely enabled
  • Loading branch information
SuperSandro2000 committed Dec 29, 2023
1 parent 8d5922d commit 1a80033
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions nixos/modules/programs/gnupg.nix
Expand Up @@ -101,8 +101,7 @@ in

config = mkIf cfg.agent.enable {
programs.gnupg.agent.settings = {
pinentry-program = lib.mkIf (cfg.agent.pinentryFlavor != null)
"${pkgs.pinentry.${cfg.agent.pinentryFlavor}}/bin/pinentry";
pinentry-program = lib.mkIf (cfg.agent.pinentryFlavor != null) lib.getExe pkgs."pinentry-${cfg.agent.pinentryFlavor}";
};

environment.etc."gnupg/gpg-agent.conf".source =
Expand Down

0 comments on commit 1a80033

Please sign in to comment.