-
-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
qtile: install proper session .desktop files for both xorg and wayland #316239
Conversation
When running
|
Thanks! This PR changed the session names, that's why the test is failing. Another todo I thought of after submitting is marking the now-removed backend option deprecated, so people having that in their configs get a nice message. |
Yes this would be nice |
c529123
to
74fbf52
Compare
Both done! |
Looking at this again, I'm afraid the |
it look after into the Setting to I'm a bit new to options, could the desktop file be wrapped in it's own derivation, with something like this? postPatch = ''
substituteInPlace resources/qtile.desktop \
--replace-fail "qtile start" "qtile start --config ${cfg.configFile}"
''; |
Actually, my idea was to do something like this: environment.etc."qtile/config.py".source = lib.optional (cfg.configFile != null) cfg.configFile; This would create a link in |
Done. I believe this is ready to test (again). |
Converted to draft, because after testing I found that the logic regarding the wrapper and |
Okay, I believe I have now (finally) arrived at a working and much cleaner solution!
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for making these changes. Looks good to me. Should we maybe move qtile later to programs.qtile
? Most wayland compositors do that, but I'm not sure for qtile as it also supports x11
Description of changes
This PR modifies the qtile package to install the provided session desktop files for login managers.
That in turn allows us to add the package to
services.displayManager.sessionPackages
when the NixOS module is enabled.After that, both the Xorg and Wayland sessions will be available from login (display) managers, instead of just one session that's hard coded to a specific backend (via the now removed option
backend
).Additionally, this fixes the
services.xserver.windowManager.qtile.finalPackage
assignment to use the qtile package instead of building a whole new env.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.