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
nixos/xserver: don't conflict pinentry package with DEs #296866
nixos/xserver: don't conflict pinentry package with DEs #296866
Conversation
03df84f
to
124ec2d
Compare
Hey I just tested this in my flake, so far I haven't ran into the inital pinentry conflict but another issue has arisen related to gnome.nix:
Flake nixpkg info:
Edit: |
This is unrelated to this change and very likely caused on that you load |
Ah how do I make sure that Edit: Even disabling that didn't fix it, now i'm getting the same kind of error but for |
Tested, works for me. |
@NovaViper you're issue is really unrelated to the issue this PR fixes and lies somewhere in your config mixing different channels not properly. |
@SuperSandro2000 Ah I realize now, I was suppose to put the |
Hi, the same is still happening with xfce: error: The option `programs.gnupg.agent.pinentryPackage' is defined multiple times while it's expected to be unique.
Definition values:
- In `/nix/store/zaza7mgggz4m5h6z18kajabf4wciaj47-source/nixos/modules/services/x11/desktop-managers/xfce.nix': <derivation pinentry-gtk2-1.2.1>
- In `/nix/store/zaza7mgggz4m5h6z18kajabf4wciaj47-source/nixos/modules/services/x11/xserver.nix': <derivation pinentry-gnome3-1.2.1>
Use `lib.mkForce value` or `lib.mkDefault value` to change the priority on any of these definitions. Will this PR fix the problem? |
I think it should fix this, it is just not in nixos-unstable, yet. https://nixpk.gs/pr-tracker.html?pr=296866 |
Shouldn't the package from the individual desktop managers have higher priority instead? For instance, the qt version should be preferred on plasma, no? With this change, the user would need to be aware to override it themselves if using x11? |
Lower numbers mean higher priority. eg. mkForce has 50 and the default is 1000 if I read it correctly. See Lines 1019 to 1024 in 26e8697
|
with this change cherry-picked, it looks like enabling multiple windowmanagers still fails:
|
This was also the case before we started the reactor and there is no clear way to solve this. |
Gotcha: this started failing for me again since 8bf5cc2/#295891 (last week), but indeed going further back I used to have to specify
If it's indeed the case the pinentry program must be configured globally and cannot be configured per-session, then indeed I suppose the old behavior was 'wrong' and forcing the user to make an explicit choice here is better. |
Description of changes
When both plasma6 and xserver are enabled,
programs.gnupg.agent.pinentryPackage
is not set to the qt variant. When only xserver is enabled it is the gnome3 variant, without requiring any extra things.Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.