-
-
Notifications
You must be signed in to change notification settings - Fork 14.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
nixos/display-managers/startx: init #47773
Conversation
Dummy display manager that allows running X as a normal user. The X server is started manually from a vt using `startx`. Session startup commands must be provided by the user in ~/.xinitrc, which is NOT automatically generated.
Combining this with |
displayManager.lightdm.enable = lib.mkForce false; | ||
}; | ||
systemd.services.display-manager.enable = false; | ||
environment.systemPackages = with pkgs; [ xorg.xinit ]; |
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.
orthogonal to this pr it would be nice to have something similar for wayland based sessions.
Awesome, thanks! I still think we need to merge #46396, though, `lightdm + xmonad` are still broken for me.
Will reusing `.xsession` script just work, can I just put `exec .xsession` in `.xinitrc`?
Why `displayManager.lightdm.enable = lib.mkForce false;`?
|
Yes. On my system I use
|
lightdm spores everywhere
I see.
Running on top of this, and it works perfectly. LGTM.
Thanks!
|
If I'm not mistaken, one issue with this solution that |
Yes. You can pass X server options manually to startx: |
@xeji Got it, thanks. |
Motivation for this change
This defines the
startx
dummy display manager that allows running X as a normal user.The X server is started manually from a VT using
startx
. It is possible to start multiple X sessions from different VTs.Session startup commands must be provided by the user in
~/.xinitrc
, which is NOT automatically generated. This lack of integration with thedesktopManager
andwindowManager
settings and other NixOS options is intentional, to keep it simple and give users full control over their X session, independent of system-wide settings.Here's how I use it with my minimal dwm desktop:
A minimal
~/.xinitrc
without any extra initialisations may look like:Things done