Enabling nvidia causes gdm to not show up

I have tried to enable nvidia like this:

services.xserver.displayManager.gdm.wayland = false;
services.xserver.videoDrivers = [ "nvidia" ];

and also like this:

services.xserver.displayManager.gdm.wayland = false;
hardware.nvidia.modesetting.enable = true;
services.xserver.videoDrivers = [ "nvidia" ];

and like this:

services.xserver.displayManager.gdm.wayland = true;
hardware.nvidia.modesetting.enable = true;
services.xserver.videoDrivers = [ "nvidia" ];

and like this:

services.xserver.displayManager.gdm.wayland = true;
services.xserver.displayManager.gdm.nvidiaWayland = true;
hardware.nvidia.modesetting.enable = true;
services.xserver.videoDrivers = [ "nvidia" ];

in logs I got this:

$ journalctl -x --boot=-1 -p err..alert
...
Nov 15 19:08:43 msi-laptop gnome-session-binary[1164]: Unrecoverable failure in required component org.gnome.Shell.desktop
2 Likes

Maybe this is related https://www.reddit.com/r/archlinux/comments/k77m5u/gdm_hangs_on_startup_only_active_when_i_switch_tty/

1 Like

I don’t know the solution, but have a possibly related edge case issue with Nvidia drivers causing the system to fail to start.

Haven’t solved it yet though, just swapped in some AMD GPUs instead and they work fine. Will keep an eye on this though, hopefully someone figures it out.

This problem is the same here.

This configuration reproduce the same X11 config and same drivers on others distros, and all working normally. Isn’t clear that the problem are over Nvidia Driver.

Even though I agree he’s not a good driver.

Another problem with GDM and Nvidia on NixOS: