I have just installed a fresh NixOS 22.11 from a graphical installer ISO that I grabbed a few hours ago, and trying to login to KDE Plasma Wayland fails and kicks back out to the display manager.
The only changes to my configuration from fresh is to setup the NVIDIA drivers which appears to be version 520.56.06. This also did not work with a completely fresh install prior to setting up the NVIDIA drivers, but this is the current state my system is in. This is what’s in the configuration.nix:
services.xserver.videoDrivers = [ "nvidia" ];
hardware.opengl.enable = true;
Looking into journalctl
logs I’ve found the following:
When starting up, immediately get qt.qpa.xcb not able to connect to the display and unable to load QT platform plugin:
Apr 04 21:23:06 HOSTNAME systemd[1496]: Started KDE Window Manager.
Apr 04 21:23:06 HOSTNAME systemd[1496]: Starting KDE Config Module Initialization...
Apr 04 21:23:06 HOSTNAME systemd[1496]: Starting Splash screen shown during boot...
Apr 04 21:23:06 HOSTNAME systemd[1496]: app-klipper@autostart.service: Skipped due to 'exec-condition'.
Apr 04 21:23:06 HOSTNAME systemd[1496]: Condition check resulted in Klipper being skipped.
Apr 04 21:23:06 HOSTNAME kaccess[2511]: Xlib XKB extension major= 1 minor= 0
Apr 04 21:23:06 HOSTNAME kaccess[2511]: qt.qpa.xcb: could not connect to display
Apr 04 21:23:06 HOSTNAME kaccess[2511]: qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
Apr 04 21:23:06 HOSTNAME kaccess[2511]: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Apr 04 21:23:06 HOSTNAME kaccess[2511]: Available platform plugins are: wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
It’s suggestion there was to reinstall the application, but this is a fresh install… There are then a large number of crashes with core dumps from lots of different applications. The actual trace is far too large to place here:
pr 04 21:23:06 HOSTNAME systemd-coredump[2525]: [🡕] Process 2511 (.kaccess-wrappe) of user 1000 dumped core.
Module linux-vdso.so.1 with build-id 593b930755e5961be2a7ed2b18b1355e1f38ac2f
Module libuuid.so.1 with build-id acd735288414f217a6ce62c44b6abce76b772af2
Module libxcb-util.so.1 without build-id.
Module libexpat.so.1 without build-id.
Module libxkbcommon.so.0 without build-id.
Module libxkbcommon-x11.so.0 without build-id.
There are a few more different errors I’ve picked out while scrolling:
Apr 04 21:23:08 HOSTNAME kwin_wayland_wrapper[2652]: No backend specified, automatically choosing drm
Apr 04 21:23:08 HOSTNAME kwin_wayland_wrapper[2652]: kwin_wayland_drm: No suitable DRM devices have been found
Apr 04 21:23:08 HOSTNAME systemd[1]: Started Process Core Dump (PID 2657/UID 0).
Apr 04 21:23:08 HOSTNAME systemd-coredump[2658]: [🡕] Process 2652 (.kwin_wayland-w) of user 1000 dumped core.
Apr 04 21:23:08 HOSTNAME systemd[1]: systemd-coredump@18-2657-0.service: Deactivated successfully.
Apr 04 21:23:08 HOSTNAME ksplashqml[2521]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
Apr 04 21:23:08 HOSTNAME ksplashqml[2521]: The Wayland connection broke. Did the Wayland compositor die?
Apr 04 21:23:08 HOSTNAME kcminit_startup[2527]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
Apr 04 21:23:08 HOSTNAME kcminit_startup[2527]: The Wayland connection broke. Did the Wayland compositor die?
Apr 04 21:23:08 HOSTNAME systemd[1496]: plasma-kwin_wayland.service: Consumed 1.544s CPU time.
Apr 04 21:23:11 HOSTNAME polkit-kde-authentication-agent-1[2742]: Invalid MIT-MAGIC-COOKIE-1 keyqt.qpa.xcb: could not connect to display :0
Apr 04 21:23:11 HOSTNAME polkit-kde-authentication-agent-1[2742]: qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
Apr 04 21:23:11 HOSTNAME polkit-kde-authentication-agent-1[2742]: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Apr 04 21:23:11 HOSTNAME polkit-kde-authentication-agent-1[2742]: Available platform plugins are: wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
Apr 04 21:23:11 HOSTNAME polkit-kde-authentication-agent-1[2742]: KCrash: Application '<unknown>' crashing...
Mostly these just have repeating error messages provided by different KDE services. Any thoughts on what I can do to debug and/or solve this? Thanks in advance.