nixos/gnupg: fix gpg-agent when pinentryFlavor is null#240708
nixos/gnupg: fix gpg-agent when pinentryFlavor is null#240708rnhmjoj merged 2 commits intoNixOS:masterfrom
Conversation
doronbehar
left a comment
There was a problem hiding this comment.
LGTM, though I haven't tested.
|
@GrahamcOfBorg test gnupg |
|
I'm not sure what is the point of |
I set |
But it shouldn't be a problem: your local gnupg.conf will override the global configuration. |
|
I added a commit that fixes the documentation for The old docs said:
You don't need to set it to null any more for your user config to take precedence. However, I think it's still reasonable to be able to remove the config entry by passing null. |
Still, that will create a reference to a |
|
This does point out that there's been a behaviour change. I think it's a good one (i.e. user config taking precedence), but I should probably put something in the release notes. |
Oh, I see.
Personally, I would simplify the implementation by removing |
rnhmjoj
left a comment
There was a problem hiding this comment.
Ok, let's leave it as is.
bc04e32 to
d19ab9f
Compare
|
Updated with release note. |
|
@GrahamcOfBorg test gnupg |
Problem reported here: doronbehar@8ea6449#r120230629
Introduced by #231108
8ea6449 moved the configuration outside the pinentryFlavor check, causing evaluation to fail when it was set to null.
960a514 removed the upstream systemd units, causing gpg-agent.service to be conditional on pinentryFlavor.
Description of changes
Things done
sandbox = trueset innix.conf? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)