-
-
Notifications
You must be signed in to change notification settings - Fork 15.6k
services.xserver
naming is confusing
#94799
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
Comments
I'm not really sure if there's a suggestion to a solution here? (Note, we still don't even have plasma5 with its wayland session yet 😦 ) Is it that you believed gnome to be a wayland only environment, and were confused that you had to enable xserver? So I don't think we can do away with |
I'm not suggesting a solution, because I don't think I know enough about the whole situation. One possibility would be to move While 99% of the desktop and window managers still need X, this will obviously shift in the future. I expect existing environments to slowly transition to Wayland and new ones to be built exclusively for Wayland. Thus, collecting them under the
Yes, exactly. I know GDM still uses X but it feels weird nevertheless. And the current documentation about this attribute re-enforces this. I've now enabled Another confusion point is that enabling xserver is required for any of the desktop environments to work. From a Nix/module perspective, this is fine and makes perfectly sense. But from an intuition stand point, I'd think enabling Gnome should enable all used components. |
I agree with this as well. It's actually pretty easy to forget to enable xserver when you'd think that would be enabled implicitly. |
This comment was marked as spam.
This comment was marked as spam.
If you want to use GDM Wayland, you have to enable this option, which also installs programs like xterm. I just ran across this when trying to remove xterm from my GNOME Wayland machines. It definitely seems like there's some room for improvement in what's installed for a pure Wayland machine. Is xterm even a requirement on X11, for that matter? b7b1f5d |
Duplicate of #102542 |
This comment was marked as spam.
This comment was marked as spam.
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/enabling-x11-still-results-in-wayland/25362/2 |
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/chroot-23-11-within-22-11-bare-metal-because-nvidia/37283/35 |
This issue has been mentioned on NixOS Discourse. There might be relevant details there: |
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/diary-of-a-new-nixos-user-thoughts-impressions-obstacles/47637/5 |
In the last stable release cycle the plasma 6 people including me put a lot of effort into making plasma 6 as xserver options free as possible. There are a few small leftovers but I think this issue is mostly solved. If no one disagrees I think we can close this issue. |
Yes, but what about GNOME, which I know is also a wayland DE by default? It's still in p.s. Thank a lot for your work on KDE |
Decided to switch from Arch to NixOS (why not). I write in the configuration file (not sure of the syntax) (2 days on NixOS): programs.sway = {
enable = true;
wrapperFeatures.gtk = true;
}; Naturally, Sway does not start. I decide to put WM or DE on X11, having commented out the line: # Enable the X11 windowing system.
services.xserver.enable = true; But surprisingly, Sway starts. [niko@nixos:~]$ echo $XDG_SESSION_TYPE
wayland Yes, we realize that sometimes we have dependencies in Wayland on X. But the choice of the name and especially the comment on this line is horrible. How? How is a person supposed to figure this out by having in the configuration file? # Enable the X11 windowing system.
services.xserver.enable = true; Perhaps the bare minimum is to do at least this: # Enable the X11 and/or Wayland windowing system.
services.xserver.enable = true; Of course this is not a solution to the problem. |
From the man page:
From the default generated
configuration.nix
:The file is also located in
nixos/modules/services/x11/xserver.nix
BUT
I need to set
services.xserver.enable = true
, even though I use Gnome on Wayland without any X11 running. The namexserver
and its relation to the X11 configuration is really misleadingAdditional context
I was wondering why my GUI wasn't showing up until I found out that I must set
services.xserver.enable = true;
.Notify maintainers
Didn't find any.
Metadata
"x86_64-linux"
Linux 5.4.54, NixOS, 20.03.2685.977000f149b (Markhor)
yes
yes
nix-env (Nix) 2.3.6
/nix/var/nix/profiles/per-user/root/channels/nixos
Maintainer information:
The text was updated successfully, but these errors were encountered: