-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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/dbus: support dbus-broker #112879
nixos/dbus: support dbus-broker #112879
Conversation
* add me as maintainer * add system-console-users * fix-paths.patch This I'm not 100% on. We make it so the systemd service isn't configured to have /run/current-system/sw/share in XDG_DATA_DIRS, and dbus-broker falls back to /usr/share. This makes it so nothing will get launched from /run/current-system/sw/share, and everything is limited to the configs (and how I believe this should be working). However, I have suspicion that maybe dbus-daemon knows about /run/current-system/sw/share.
My position for this PR is to try to merge this without changing defaults. And in another PR change this and maybe we can get a jobset to see that none of our tests are acting up, make release notes, and just general more scrutiny. LMK if that sounds like the way to go. |
This comment has been minimized.
This comment has been minimized.
A concern with I'd have to be concerned with is that |
Need to add |
When testing this I see a lot of |
Yep, I believe this is true also. |
So we already hard code |
I don't use GNOME, but it should no longer launch dbus manually - instead it expects systemd to have set up the socket.
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/what-are-your-goals-for-21-05/11559/7 |
On Fedora, GNOME will rely on Long story short: GDM completely ignores the user bus and spawns its own session bus via |
So I heard that sadly worldofpeace will no longer be actively working on nixpkgs. Could we merge this as is (maybe with a warning that its experimental and some things might not work yet)? I would very much like to use it even in the current state and could also take over the pr if this is desired. |
If this needs more work just create a new PR based on this one. |
Can someone just update dbus-broker package? 🤔 |
@ilya-fedin - maybe just pull out the commit with the update and stick it into it's own PR? Considering there are no dependencies on it right now, that should get merged quickly. |
#121664 |
Motivation for this change
The dbus-broker project tries to improve on what was dbus-daemon, and provide a better alternative.
This PR adds support for dbus-broker, which I hope could be the default dbus daemon for NixOS.
For more information about dbus-broker see https://dvdhrm.github.io/rethinking-the-dbus-message-bus/ or this short description from Fedora. They've used dbus-broker since F30 (was released on April 30, 2019,) which should help to make this an easy switch for us.
Things done
dbus-broker
was running/etc/systemd
for the units being setup in the way I expecteddbus-broker
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)