SDDM fails to launch KDE Plasma 6 Wayland Session

For a while now, I have an issue with all of my NixOS systems where SDDM fails to launch a Plasma6 Wayland session. Instead, when I successfully login the greeter goes away, and I get a black screen (as if Plasma were launching), after a few seconds, rather than getting the splash screen, the greeter is displayed again. What is odd is that I can successfully launch Plasma6 in an X11 session with SDDM though, also if I switch to a TTY I can login and run startplasma-wayland manually and a Wayland session is successfully launched.

I did originally report this to the nixpkg issue tracker, but that has gotten nowhere (either because it gets buried under other tickets, not actually a bug, etc…). The process of having to switch to a TTY while it works is highly annoying and not a perfect solution as I have some things that depend on kwallet being unlocked (IMAP configuration, Proton Pass, Proton Mail Bridge, Proton VPN, etc…). The problem is that since the session wasn’t started with SDDM the hook to auto-unlock the wallet doesn’t work.

The closest thing I have found to an error message for this is the following line from $HOME/.local/share/sddm/wayland-session.log

/nix/store/n7qy5f46ag2320dajrxdggg788v99kaw-sddm-unwrapped-0.21.0/share/sddm/scripts/wayland-session:49: no such file or directory: /nix/store/sw9amjplk1al9ik84ln9scqqsx32x3dl-plasma-workspace-6.2.5/libexec/plasma-dbus-run-session-if-needed /nix/store/sw9amjplk1al9ik84ln9scqqsx32x3dl-plasma-workspace-6.2.5/bin/startplasma-wayland

The journalctl output after tring to login with SDDM doesn’t give much to go off either.

Jan 28 09:57:05 vili sddm-greeter-qt6[2554]: Reading from "/nix/store/80h40yri0p0fg0rhgqpimyn6gagmh4fp-desktops/share/wayland-sessions/plasma.desktop"
Jan 28 09:57:05 vili sddm[2502]: Message received from greeter: Login
Jan 28 09:57:05 vili sddm[2502]: Reading from "/nix/store/80h40yri0p0fg0rhgqpimyn6gagmh4fp-desktops/share/wayland-sessions/plasma.desktop"
Jan 28 09:57:05 vili sddm[2502]: Session "/nix/store/80h40yri0p0fg0rhgqpimyn6gagmh4fp-desktops/share/wayland-sessions/plasma.desktop" selected, command: "/nix/store/sw9amjplk1al9ik84ln9scqqsx32x3dl-plasma-workspace-6.2.5/libexec/plasma-dbus-run-session-if-needed /nix/store/sw9amjplk1al9ik84ln9scqqsx32x3dl-plasma-workspace-6.2.5/bin/startplasma-wayland" for VT 2
Jan 28 09:57:05 vili sddm-helper[3396]: Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8.
                                        Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead.
                                        If this causes problems, reconfigure your locale. See the locale(1) manual
                                        for more information.
Jan 28 09:57:05 vili sa-update-start[3392]: Generating a Unix-style Makefile
Jan 28 09:57:05 vili sa-update-start[3392]: Writing Makefile for Mail::SpamAssassin::CompiledRegexps::body_neg2000
Jan 28 09:57:05 vili sa-update-start[3392]: Writing MYMETA.yml and MYMETA.json
Jan 28 09:57:05 vili sddm-helper[3396]: [PAM] Starting...
Jan 28 09:57:05 vili sddm-helper[3396]: [PAM] Authenticating...
Jan 28 09:57:05 vili sa-update-start[2771]: make PREFIX=/tmp/.spamassassin27710YTbkQtmp/ignored INSTALLSITEARCH=/var/lib/spamassassin/compiled/5.040/4.000001
Jan 28 09:57:05 vili sddm-helper[3396]: [PAM] Preparing to converse...
Jan 28 09:57:05 vili sddm-helper[3396]: [PAM] Conversation with 1 messages
Jan 28 09:57:05 vili sddm-helper[3396]: pam_kwallet5(sddm:auth): pam_kwallet5: pam_sm_authenticate
Jan 28 09:57:05 vili sddm-helper[3396]: [PAM] returning.
Jan 28 09:57:05 vili sddm[2502]: Authentication for user  "vendion"  successful
Jan 28 09:57:05 vili sddm-greeter-qt6[2554]: Message received from daemon: LoginSucceeded
Jan 28 09:57:05 vili sddm-helper[3396]: pam_kwallet5(sddm:setcred): pam_kwallet5: pam_sm_setcred
Jan 28 09:57:05 vili sddm-helper[3396]: pam_unix(sddm:session): session opened for user vendion(uid=1000) by (uid=0)
Jan 28 09:57:05 vili systemd[1]: Created slice Slice /user/1000.
Jan 28 09:57:05 vili systemd[1]: Starting User Runtime Directory /run/user/1000...
Jan 28 09:57:05 vili systemd-logind[1624]: New session 2 of user vendion.
Jan 28 09:57:05 vili sddm-helper-start-wayland[2526]: wayland greeter finished 0 QProcess::NormalExit
Jan 28 09:57:05 vili sddm-helper-start-wayland[2526]: quitting helper-start-wayland
Jan 28 09:57:05 vili sddm-helper-start-wayland[2526]: Stopping... "/nix/store/99rj7cgwm4f4znljp3zfkg7b7c554qjm-kwin-6.2.5/bin/kwin_wayland"
Jan 28 09:57:05 vili systemd[1]: Finished User Runtime Directory /run/user/1000.
Jan 28 09:57:05 vili systemd[1]: Starting User Manager for UID 1000...
Jan 28 09:57:05 vili (systemd)[3433]: pam_unix(systemd-user:session): session openedfor user vendion(uid=1000) by (uid=0)
Jan 28 09:57:05 vili systemd-logind[1624]: New session 3 of user vendion.
Jan 28 09:57:05 vili sa-update-start[3435]: cp body_neg2000.pm blib/lib/Mail/SpamAssassin/CompiledRegexps/body_neg2000.pm
Jan 28 09:57:05 vili sddm-helper-start-wayland[2526]: wayland compositor finished 15QProcess::NormalExit
Jan 28 09:57:05 vili sddm-helper-start-wayland[2526]: quitting helper-start-wayland
Jan 28 09:57:05 vili sddm-helper[2505]: [PAM] Closing session
Jan 28 09:57:05 vili sa-update-start[3450]: Running Mkbootstrap for body_neg2000 ()
Jan 28 09:57:05 vili sa-update-start[3400]: chmod 644 "body_neg2000.bs"
Jan 28 09:57:05 vili sa-update-start[3400]: "/nix/store/lnbi98k11qgx5niss9yswkjk5czrkyiw-perl-5.40.0/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- body_neg2000.bs blib/arch/auto/Mail/SpamAssassin/CompiledRegexps/body_neg2000/body_neg2000.bs 644
Jan 28 09:57:05 vili sddm-helper[2505]: [PAM] Ended.
Jan 28 09:57:05 vili sddm[2502]: Auth: sddm-helper exited successfully
Jan 28 09:57:05 vili sddm[2502]: Greeter stopped. SDDM::Auth::HELPER_SUCCESS
Jan 28 09:57:05 vili systemd[1]: session-c1.scope: Deactivated successfully.
Jan 28 09:57:05 vili systemd[1]: session-c1.scope: Consumed 2.790s CPU time, 1G memory peak, 766.8M read from disk, 1.4M written to disk.
Jan 28 09:57:05 vili systemd-logind[1624]: Session c1 logged out. Waiting for processes to exit.
Jan 28 09:57:05 vili bluetoothd[1530]: Endpoint unregistered: sender=:1.27 path=/MediaEndpoint/A2DPSource/ldac
Jan 28 09:57:06 vili bluetoothd[1530]: Endpoint unregistered: sender=:1.27 path=/MediaEndpoint/A2DPSink/aptx_hd
Jan 28 09:57:06 vili systemd-logind[1624]: Removed session c1.
Jan 28 09:57:06 vili bluetoothd[1530]: Endpoint unregistered: sender=:1.27 path=/MediaEndpoint/A2DPSource/aptx_hd
Jan 28 09:57:06 vili sa-update-start[3400]: "/nix/store/lnbi98k11qgx5niss9yswkjk5czrkyiw-perl-5.40.0/bin/perl" "/nix/store/lnbi98k11qgx5niss9yswkjk5czrkyiw-perl-5.40.0/lib/perl5/5.40.0/ExtUtils/xsubpp"  -typemap '/nix/store/lnbi98k11qgx5niss9yswkjk5czrkyiw-perl-5.40.0/lib/perl5/5.40.0/ExtUtils/typemap'  body_neg2000.xs > body_neg2000.xsc
Jan 28 09:57:06 vili bluetoothd[1530]: Endpoint unregistered: sender=:1.27 path=/MediaEndpoint/A2DPSink/aptx
Jan 28 09:57:06 vili bluetoothd[1530]: Endpoint unregistered: sender=:1.27 path=/MediaEndpoint/A2DPSource/aptx
Jan 28 09:57:06 vili bluetoothd[1530]: Endpoint unregistered: sender=:1.27 path=/MediaEndpoint/A2DPSink/aac
Jan 28 09:57:06 vili bluetoothd[1530]: Endpoint unregistered: sender=:1.27 path=/MediaEndpoint/A2DPSource/aac
Jan 28 09:57:06 vili bluetoothd[1530]: Endpoint unregistered: sender=:1.27 path=/MediaEndpoint/A2DPSink/opus_g
Jan 28 09:57:06 vili bluetoothd[1530]: Endpoint unregistered: sender=:1.27 path=/MediaEndpoint/A2DPSource/opus_g
Jan 28 09:57:06 vili bluetoothd[1530]: Endpoint unregistered: sender=:1.27 path=/MediaEndpoint/A2DPSink/sbc
Jan 28 09:57:06 vili bluetoothd[1530]: Endpoint unregistered: sender=:1.27 path=/MediaEndpoint/A2DPSource/sbc
Jan 28 09:57:06 vili bluetoothd[1530]: Endpoint unregistered: sender=:1.27 path=/MediaEndpoint/A2DPSource/aptx_ll_1
Jan 28 09:57:06 vili bluetoothd[1530]: Endpoint unregistered: sender=:1.27 path=/MediaEndpoint/A2DPSource/aptx_ll_0
Jan 28 09:57:06 vili bluetoothd[1530]: Endpoint unregistered: sender=:1.27 path=/MediaEndpoint/A2DPSource/aptx_ll_duplex_1
Jan 28 09:57:06 vili bluetoothd[1530]: Endpoint unregistered: sender=:1.27 path=/MediaEndpoint/A2DPSource/aptx_ll_duplex_0
Jan 28 09:57:06 vili bluetoothd[1530]: Endpoint unregistered: sender=:1.27 path=/MediaEndpoint/A2DPSource/faststream
Jan 28 09:57:06 vili bluetoothd[1530]: Endpoint unregistered: sender=:1.27 path=/MediaEndpoint/A2DPSource/faststream_duplex
Jan 28 09:57:06 vili bluetoothd[1530]: Endpoint unregistered: sender=:1.27 path=/MediaEndpoint/A2DPSink/opus_05
Jan 28 09:57:06 vili bluetoothd[1530]: Endpoint unregistered: sender=:1.27 path=/MediaEndpoint/A2DPSource/opus_05
Jan 28 09:57:06 vili bluetoothd[1530]: Endpoint unregistered: sender=:1.27 path=/MediaEndpoint/A2DPSink/opus_05_duplex
Jan 28 09:57:06 vili bluetoothd[1530]: Endpoint unregistered: sender=:1.27 path=/MediaEndpoint/A2DPSource/opus_05_duplex
Jan 28 09:57:06 vili sa-update-start[3400]: mv body_neg2000.xsc body_neg2000.c
Jan 28 09:57:06 vili sa-update-start[3400]: cc -c   -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/no-such-path/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2   -DVERSION=\"1.0\" -DXS_VERSION=\"1.0\" -fPIC "-I/nix/store/lnbi98k11qgx5niss9yswkjk5czrkyiw-perl-5.40.0/lib/perl5/5.40.0/x86_64-linux-thread-multi/CORE"   body_neg2000.c
Jan 28 09:57:06 vili systemd[3433]: Queued start job for default target Main User Target.
Jan 28 09:57:06 vili systemd[3433]: Started Submitting pending crash events (file monitor).
Jan 28 09:57:06 vili systemd[3433]: Cleanup lingering KCrash metadata was skipped because of an unmet condition check (ConditionPathExistsGlob=/home/vendion/.cache/kcrash-metadata/*.ini).
Jan 28 09:57:06 vili systemd[3433]: Submitting pending crash events was skipped because of an unmet condition check (ConditionPathExistsGlob=/home/vendion/.cache/drkonqi/sentry-envelopes/*).
Jan 28 09:57:06 vili systemd[3433]: Reached target Paths.
Jan 28 09:57:06 vili systemd[3433]: Reached target Timers.
Jan 28 09:57:06 vili systemd[3433]: Created slice User Application Slice.
Jan 28 09:57:06 vili systemd[3433]: Starting D-Bus User Message Bus Socket...
Jan 28 09:57:06 vili systemd[3433]: Listening on Socket to launch DrKonqi for a systemd-coredump crash.
Jan 28 09:57:06 vili systemd[3433]: Listening on GnuPG cryptographic agent (ssh-agent emulation).
Jan 28 09:57:06 vili systemd[3433]: Listening on GnuPG cryptographic agent and passphrase cache.
Jan 28 09:57:06 vili systemd[3433]: Listening on PipeWire PulseAudio.
Jan 28 09:57:06 vili systemd[3433]: Listening on PipeWire Multimedia System Sockets.
Jan 28 09:57:06 vili systemd[3433]: Listening on Podman API Socket.
Jan 28 09:57:06 vili systemd[3433]: Listening on D-Bus User Message Bus Socket.
Jan 28 09:57:06 vili systemd[3433]: Reached target Sockets.
Jan 28 09:57:06 vili systemd[3433]: Reached target Basic System.
Jan 28 09:57:06 vili systemd[1]: Started User Manager for UID 1000.
Jan 28 09:57:06 vili systemd[3433]: Started devmon automatic device mounting daemon.
Jan 28 09:57:06 vili systemd[3433]: Cleanup lingering KCrash metadata was skipped because of an unmet condition check (ConditionPathExistsGlob=/home/vendion/.cache/kcrash-metadata/*.ini).
Jan 28 09:57:06 vili systemd[1]: Started Session 2 of User vendion.
Jan 28 09:57:06 vili systemd[3433]: Starting Geoclue agent...
Jan 28 09:57:06 vili systemd[3433]: Starting Run user-specific NixOS activation...
Jan 28 09:57:06 vili systemd[3433]: Starting sops-nix activation...
Jan 28 09:57:06 vili systemd[3433]: Started SSH authentication agent.
Jan 28 09:57:06 vili systemd[3433]: Started Syncthing - Open Source Continuous File Synchronization.
Jan 28 09:57:06 vili systemd[3433]: yubikey-agent.service: unit configures an IP firewall, but not running as root.
Jan 28 09:57:06 vili systemd[3433]: yubikey-agent.service: (This warning is only shown for the first unit using IP firewalling.)
Jan 28 09:57:06 vili sddm-helper[3396]: pam_kwallet5(sddm:session): pam_kwallet5: pam_sm_open_session
Jan 28 09:57:06 vili systemd[3433]: Started Seamless ssh-agent for YubiKeys.
Jan 28 09:57:06 vili systemd[3433]: Started Geoclue agent.
Jan 28 09:57:06 vili nixos-activation-start[3495]: removed '/home/vendion/.cache/ksycoca6_en_htfe1qUkIfytdB6xdBr1wbS+3Ws='
Jan 28 09:57:06 vili nixos-activation-start[3495]: removed '/home/vendion/.cache/ksycoca6_en_kphqWpCFrwaoCpjIrK4uTj5NC4c='
Jan 28 09:57:06 vili nixos-activation-start[3495]: removed '/home/vendion/.cache/ksycoca6_en_RuABAHNsKmYZKGPF3vwkQ3qv+ig='
Jan 28 09:57:06 vili nixos-activation-start[3495]: removed '/home/vendion/.cache/ksycoca6_en_zKviL3lGXolYh+RMAxFCyx6xaqM='
Jan 28 09:57:06 vili ssh-agent[3482]: SSH_AUTH_SOCK=/run/user/1000/ssh-agent; exportSSH_AUTH_SOCK;
Jan 28 09:57:06 vili ssh-agent[3482]: echo Agent pid 3482;
Jan 28 09:57:06 vili systemd[3433]: Created slice User Core Session Slice.
Jan 28 09:57:06 vili systemd[3433]: Starting D-Bus User Message Bus...
Jan 28 09:57:06 vili systemd[3433]: Finished Run user-specific NixOS activation.
Jan 28 09:57:06 vili systemd[3433]: Started D-Bus User Message Bus.
Jan 28 09:57:06 vili systemd[3433]: Finished sops-nix activation.
Jan 28 09:57:06 vili devmon[3478]: WARNING: multiple instances of devmon appear to be running (my pid=3478):
Jan 28 09:57:06 vili systemd[3433]: Reached target Main User Target.
Jan 28 09:57:06 vili systemd[3433]: Startup finished in 440ms.
Jan 28 09:57:06 vili devmon[3529]:    2524 ?        Ss     0:00 /nix/store/4fvc5fm8bszmkydng1ivrvr5cbvr1g60-bash-5.2p37/bin/bash /nix/store/c2pqmlfmvfgxqkkmbd2mj5fmjjdwr1lg-udevil-0.4.4/bin/devmon
Jan 28 09:57:06 vili devmon[3529]:    3478 ?        Ss     0:00 /nix/store/4fvc5fm8bszmkydng1ivrvr5cbvr1g60-bash-5.2p37/bin/bash /nix/store/c2pqmlfmvfgxqkkmbd2mj5fmjjdwr1lg-udevil-0.4.4/bin/devmon
Jan 28 09:57:06 vili sddm-helper[3530]: pam_kwallet5: final socket path: /run/user/1000/kwallet5.socket
Jan 28 09:57:06 vili sddm-helper[3396]: Starting Wayland user session: "/nix/store/n7qy5f46ag2320dajrxdggg788v99kaw-sddm-unwrapped-0.21.0/share/sddm/scripts/wayland-session" "/nix/store/sw9amjplk1al9ik84ln9scqqsx32x3dl-plasma-workspace-6.2.5/libexec/plasma-dbus-run-session-if-needed /nix/store/sw9amjplk1al9ik84ln9scqqsx32x3dl-plasma-workspace-6.2.5/bin/startplasma-wayland"
Jan 28 09:57:06 vili sddm-helper[3538]: Jumping to VT 2
Jan 28 09:57:06 vili sddm-helper[3538]: VT mode didn't need to be fixed
Jan 28 09:57:06 vili sddm[2502]: Session started true
Jan 28 09:57:06 vili kernel: refused connection: IN=wlan0 OUT= MAC=b8:8a:60:e2:70:8e:86:dd:a4:76:a1:22:08:00 SRC=192.168.86.10 DST=192.168.86.29 LEN=60 TOS=0x00 PREC=0x00 TTL=64 ID=41190 DF PROTO=TCP SPT=22000 DPT=22000 WINDOW=64240 RES=0x00 SYN URGP=0
Jan 28 09:57:06 vili sddm-helper[3396]: [PAM] Closing session
Jan 28 09:57:06 vili sddm-helper[3396]: pam_unix(sddm:session): session closed for user vendion
Jan 28 09:57:06 vili syncthing[3485]: [start] INFO: syncthing v1.29.2 "Gold Grasshopper" (go1.23.4 linux-amd64) nix@nix 1980-01-01 00:00:00 UTC [noupgrade]
Jan 28 09:57:06 vili sddm-helper[3396]: pam_kwallet5(sddm:session): pam_kwallet5: pam_sm_close_session
Jan 28 09:57:06 vili sddm-helper[3396]: pam_kwallet5(sddm:setcred): pam_kwallet5: pam_sm_setcred
Jan 28 09:57:06 vili sddm-helper[3396]: [PAM] Ended.
Jan 28 09:57:06 vili sddm[2502]: Auth: sddm-helper exited with 127
Jan 28 09:57:06 vili sddm[2502]: Socket server stopping...
Jan 28 09:57:06 vili sddm[2502]: Socket server stopped.
Jan 28 09:57:06 vili sddm[2502]: Removing display SDDM::Display(0xc621500) ...
Jan 28 09:57:06 vili sddm[2502]: Adding new display...
Jan 28 09:57:06 vili sddm[2502]: Loaded empty theme configuration
Jan 28 09:57:06 vili systemd-logind[1624]: Session 2 logged out. Waiting for processes to exit.
Jan 28 09:57:06 vili sddm[2502]: Using VT 7
Jan 28 09:57:06 vili sddm[2502]: Display server started.
Jan 28 09:57:06 vili sddm[2502]: Socket server starting...
Jan 28 09:57:06 vili sddm[2502]: Socket server started.
Jan 28 09:57:06 vili sddm[2502]: Loading theme configuration from "/run/current-system/sw/share/sddm/themes/sddm-astronaut-theme/Themes/black_hole.conf"
Jan 28 09:57:06 vili syncthing[3485]: [start] INFO: Using large-database tuning
Jan 28 09:57:06 vili sddm[2502]: Greeter starting...
Jan 28 09:57:06 vili sddm-helper[3551]: Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8.
                                        Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead.
                                        If this causes problems, reconfigure your locale. See the locale(1) manual
                                        for more information.
Jan 28 09:57:06 vili sddm-helper[3551]: [PAM] Starting...
Jan 28 09:57:06 vili sddm-helper[3551]: [PAM] Authenticating...
Jan 28 09:57:06 vili sddm-helper[3551]: [PAM] returning.
Jan 28 09:57:06 vili syncthing[3485]: [WRMYK] INFO: My ID: WRMYKUJ-AF5UBDV-HZXFBRK-2VQTQQI-RLPSQPK-BASTKKV-P6DLRHI-IURB6AP
Jan 28 09:57:06 vili systemd-logind[1624]: New session c2 of user sddm.
Jan 28 09:57:06 vili sa-update-start[3400]: rm -f blib/arch/auto/Mail/SpamAssassin/CompiledRegexps/body_neg2000/body_neg2000.so
Jan 28 09:57:06 vili sa-update-start[3400]: cc  -shared -O2 -L/nix/store/h7zcxabfxa7v5xdna45y2hplj31ncf8a-glibc-2.40-36/lib -fstack-protector-strong  body_neg2000.o  -o blib/arch/auto/Mail/SpamAssassin/CompiledRegexps/body_neg2000/body_neg2000.so  \
Jan 28 09:57:06 vili sa-update-start[3400]:       \
Jan 28 09:57:06 vili sa-update-start[3400]:
Jan 28 09:57:06 vili systemd[1]: Started Session c2 of User sddm.
Jan 28 09:57:06 vili systemd[1]: Started Getty on tty2.
Jan 28 09:57:06 vili sddm-helper[3564]: Jumping to VT 7
Jan 28 09:57:06 vili sddm-helper[3564]: VT mode didn't need to be fixed
Jan 28 09:57:06 vili sddm[2502]: Greeter session started successfully
Jan 28 09:57:06 vili sddm-helper-start-wayland[3564]: Starting Wayland process "/nix/store/99rj7cgwm4f4znljp3zfkg7b7c554qjm-kwin-6.2.5/bin/kwin_wayland --no-global-shortcuts --no-kactivities --no-lockscreen --locale1" "sddm"
Jan 28 09:57:06 vili sddm-helper-start-wayland[3564]: started succesfully "/nix/store/99rj7cgwm4f4znljp3zfkg7b7c554qjm-kwin-6.2.5/bin/kwin_wayland --no-global-shortcuts --no-kactivities --no-lockscreen --locale1"
Jan 28 09:57:06 vili sa-update-start[3400]: chmod 755 blib/arch/auto/Mail/SpamAssassin/CompiledRegexps/body_neg2000/body_neg2000.so
Jan 28 09:57:06 vili sddm-helper-start-wayland[3564]: "No backend specified, automatically choosing drm\n"
Jan 28 09:57:06 vili sddm-helper-start-wayland[3564]: Directory "/run/user/175" has changed, checking for Wayland socket
Jan 28 09:57:06 vili sddm-helper-start-wayland[3564]: Found Wayland socket "/run/user/175/wayland-0"
Jan 28 09:57:06 vili sa-update-start[3576]: Manifying 1 pod document
Jan 28 09:57:06 vili sa-update-start[2771]: make install PREFIX=/tmp/.spamassassin27710YTbkQtmp/ignored INSTALLSITEARCH=/var/lib/spamassassin/compiled/5.040/4.000001
Jan 28 09:57:06 vili sddm-helper-start-wayland[3564]: "Accepting client connections on sockets: QList(\"wayland-0\")\n"
Jan 28 09:57:06 vili sddm-greeter-qt6[3579]: High-DPI autoscaling Enabled
Jan 28 09:57:06 vili sa-update-start[3582]: "/nix/store/lnbi98k11qgx5niss9yswkjk5czrkyiw-perl-5.40.0/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- body_neg2000.bs blib/arch/auto/Mail/SpamAssassin/CompiledRegexps/body_neg2000/body_neg2000.bs 644
Jan 28 09:57:06 vili sa-update-start[3595]: Manifying 1 pod document
Jan 28 09:57:06 vili systemd[1]: systemd-hostnamed.service: Deactivated successfully.
Jan 28 09:57:06 vili sa-update-start[3607]: Files found in blib/arch: installing files in blib/lib into architecture dependent library tree
Jan 28 09:57:06 vili sa-update-start[3607]: Installing /var/lib/spamassassin/compiled/5.040/4.000001/auto/Mail/SpamAssassin/CompiledRegexps/body_neg2000/body_neg2000.so
Jan 28 09:57:06 vili sa-update-start[3607]: Installing /var/lib/spamassassin/compiled/5.040/4.000001/Mail/SpamAssassin/CompiledRegexps/body_neg2000.pm
Jan 28 09:57:06 vili sa-update-start[3607]: Installing /tmp/.spamassassin27710YTbkQtmp/ignored/share/man/man3/Mail::SpamAssassin::CompiledRegexps::body_neg2000.3
Jan 28 09:57:06 vili sa-update-start[3614]: Appending installation info to /tmp/.spamassassin27710YTbkQtmp/ignored/lib/perl5/5.40.0/x86_64-linux-thread-multi/perllocal.pod
Jan 28 09:57:06 vili wireplumber[2572]: default: Failed to get percentage from UPower: org.freedesktop.DBus.Error.NameHasNoOwner
Jan 28 09:57:06 vili wireplumber[2572]: spa.bluez5.midi: org.bluez.GattManager1.RegisterApplication() failed: GDBus.Error:org.bluez.Error.AlreadyExists: Already Exists
Jan 28 09:57:06 vili sa-update-start[2771]: cp /tmp/.spamassassin27710YTbkQtmp/bases_body_neg2000.pl /var/lib/spamassassin/compiled/5.040/4.000001/bases_body_neg2000.pl
Jan 28 09:57:06 vili sa-update-start[2771]: cd /
Jan 28 09:57:06 vili sa-update-start[2771]: rm -rf /tmp/.spamassassin27710YTbkQtmp
Jan 28 09:57:06 vili syncthing[3485]: [WRMYK] INFO: Hashing performance is 263.24 MB/s
Jan 28 09:57:06 vili syncthing[3485]: [WRMYK] INFO: Overall send rate is unlimited, receive rate is unlimited
Jan 28 09:57:06 vili syncthing[3485]: [WRMYK] INFO: Relay listener (dynamic+https://relays.syncthing.net/endpoint) starting
Jan 28 09:57:06 vili syncthing[3485]: 2025/01/28 09:57:06 failed to sufficiently increase receive buffer size (was: 208 kiB, wanted: 7168 kiB, got: 416 kiB). See https://github.com/quic-go/quic-go/wiki/UDP-Buffer-Sizes for details.
Jan 28 09:57:06 vili syncthing[3485]: [WRMYK] INFO: TCP listener ([::]:22000) starting
Jan 28 09:57:06 vili syncthing[3485]: [WRMYK] INFO: QUIC listener ([::]:22000) starting
Jan 28 09:57:06 vili syncthing[3485]: [WRMYK] INFO: Using discovery mechanism: global discovery server https://discovery-lookup.syncthing.net/v2/?noannounce
Jan 28 09:57:06 vili syncthing[3485]: [WRMYK] INFO: Using discovery mechanism: global discovery server https://discovery-announce-v4.syncthing.net/v2/?nolookup
Jan 28 09:57:06 vili syncthing[3485]: [WRMYK] INFO: Using discovery mechanism: global discovery server https://discovery-announce-v6.syncthing.net/v2/?nolookup
Jan 28 09:57:06 vili syncthing[3485]: [WRMYK] INFO: Using discovery mechanism: IPv4 local broadcast discovery on port 21027
Jan 28 09:57:06 vili syncthing[3485]: [WRMYK] INFO: Using discovery mechanism: IPv6 local multicast discovery on address [ff12::8384]:21027
Jan 28 09:57:06 vili syncthing[3485]: [WRMYK] INFO: GUI and API listening on [::]:8384
Jan 28 09:57:06 vili syncthing[3485]: [WRMYK] INFO: Access the GUI via the followingURL: http://127.0.0.1:8384/
Jan 28 09:57:06 vili syncthing[3485]: [WRMYK] INFO: My name is "vili"
Jan 28 09:57:06 vili syncthing[3485]: [WRMYK] INFO: Device BLC5JZQ-67WJA7P-SGYKUGG-72OVOP3-2IV4QB7-M5AE2N4-NWEH5AR-NCSXQAN is "Thor" at [dynamic]
Jan 28 09:57:06 vili syncthing[3485]: [WRMYK] INFO: Ready to synchronize "Recipes" (5zjpe-yc3wd) (sendreceive)
Jan 28 09:57:06 vili syncthing[3485]: [WRMYK] INFO: Ready to synchronize "Projects" (7ynqs-seqc4) (sendreceive)
Jan 28 09:57:06 vili syncthing[3485]: [WRMYK] INFO: Ready to synchronize "Default Folder" (default) (sendreceive)
Jan 28 09:57:06 vili syncthing[3485]: [WRMYK] INFO: Ready to synchronize "Documents"(oytbp-yhz3e) (sendreceive)
Jan 28 09:57:06 vili syncthing[3485]: [WRMYK] INFO: Ready to synchronize "RowLogic" (v2m3l-wn2x3) (sendreceive)
Jan 28 09:57:06 vili syncthing[3485]: [WRMYK] INFO: Completed initial scan of sendreceive folder "Recipes" (5zjpe-yc3wd)
Jan 28 09:57:06 vili syncthing[3485]: [WRMYK] INFO: Completed initial scan of sendreceive folder "Default Folder" (default)
Jan 28 09:57:06 vili syncthing[3485]: [WRMYK] INFO: Completed initial scan of sendreceive folder "Documents" (oytbp-yhz3e)
Jan 28 09:57:06 vili bluetoothd[1530]: Endpoint registered: sender=:1.38 path=/MediaEndpoint/A2DPSource/ldac
Jan 28 09:57:06 vili bluetoothd[1530]: Endpoint registered: sender=:1.38 path=/MediaEndpoint/A2DPSink/aptx_hd
Jan 28 09:57:06 vili bluetoothd[1530]: Endpoint registered: sender=:1.38 path=/MediaEndpoint/A2DPSource/aptx_hd
Jan 28 09:57:06 vili bluetoothd[1530]: Endpoint registered: sender=:1.38 path=/MediaEndpoint/A2DPSink/aptx
Jan 28 09:57:06 vili bluetoothd[1530]: Endpoint registered: sender=:1.38 path=/MediaEndpoint/A2DPSource/aptx
Jan 28 09:57:06 vili bluetoothd[1530]: Endpoint registered: sender=:1.38 path=/MediaEndpoint/A2DPSink/aac
Jan 28 09:57:06 vili bluetoothd[1530]: Endpoint registered: sender=:1.38 path=/MediaEndpoint/A2DPSource/aac
Jan 28 09:57:06 vili bluetoothd[1530]: Endpoint registered: sender=:1.38 path=/MediaEndpoint/A2DPSink/opus_g
Jan 28 09:57:06 vili bluetoothd[1530]: Endpoint registered: sender=:1.38 path=/MediaEndpoint/A2DPSource/opus_g
Jan 28 09:57:06 vili bluetoothd[1530]: Endpoint registered: sender=:1.38 path=/MediaEndpoint/A2DPSink/sbc
Jan 28 09:57:07 vili bluetoothd[1530]: Endpoint registered: sender=:1.38 path=/MediaEndpoint/A2DPSource/sbc
Jan 28 09:57:07 vili bluetoothd[1530]: Endpoint registered: sender=:1.38 path=/MediaEndpoint/A2DPSource/aptx_ll_1
Jan 28 09:57:07 vili bluetoothd[1530]: Endpoint registered: sender=:1.38 path=/MediaEndpoint/A2DPSource/aptx_ll_0
Jan 28 09:57:07 vili bluetoothd[1530]: Endpoint registered: sender=:1.38 path=/MediaEndpoint/A2DPSource/aptx_ll_duplex_1
Jan 28 09:57:07 vili bluetoothd[1530]: Endpoint registered: sender=:1.38 path=/MediaEndpoint/A2DPSource/aptx_ll_duplex_0
Jan 28 09:57:07 vili bluetoothd[1530]: Endpoint registered: sender=:1.38 path=/MediaEndpoint/A2DPSource/faststream
Jan 28 09:57:07 vili bluetoothd[1530]: Endpoint registered: sender=:1.38 path=/MediaEndpoint/A2DPSource/faststream_duplex
Jan 28 09:57:07 vili bluetoothd[1530]: Endpoint registered: sender=:1.38 path=/MediaEndpoint/A2DPSink/opus_05
Jan 28 09:57:07 vili bluetoothd[1530]: Endpoint registered: sender=:1.38 path=/MediaEndpoint/A2DPSource/opus_05
Jan 28 09:57:07 vili bluetoothd[1530]: Endpoint registered: sender=:1.38 path=/MediaEndpoint/A2DPSink/opus_05_duplex
Jan 28 09:57:07 vili bluetoothd[1530]: Endpoint registered: sender=:1.38 path=/MediaEndpoint/A2DPSource/opus_05_duplex
Jan 28 09:57:07 vili systemd[1]: sa-update.service: Deactivated successfully.
Jan 28 09:57:07 vili systemd[1]: Finished sa-update.service.
Jan 28 09:57:07 vili systemd[1]: sa-update.service: Consumed 20.897s CPU time, 273.8M memory peak, 138.2M read from disk, 1.9M written to disk, 375.1K incoming IP traffic, 11K outgoing IP traffic.
Jan 28 09:57:07 vili systemd[1]: Started SpamAssassin Server.
Jan 28 09:57:07 vili sddm-greeter-qt6[3579]: Reading from "/nix/store/80h40yri0p0fg0rhgqpimyn6gagmh4fp-desktops/share/wayland-sessions/plasma.desktop"
Jan 28 09:57:07 vili sddm-greeter-qt6[3579]: Reading from "/nix/store/80h40yri0p0fg0rhgqpimyn6gagmh4fp-desktops/share/xsessions/plasmax11.desktop"
Jan 28 09:57:07 vili sddm-greeter-qt6[3579]: Loading theme configuration from "/run/current-system/sw/share/sddm/themes/sddm-astronaut-theme/Themes/black_hole.conf"
Jan 28 09:57:07 vili sddm-greeter-qt6[3579]: Connected to the daemon.
Jan 28 09:57:07 vili sddm[2502]: Message received from greeter: Connect
Jan 28 09:57:07 vili sddm-greeter-qt6[3579]: Loading file:///run/current-system/sw/share/sddm/themes/sddm-astronaut-theme/Main.qml...
Jan 28 09:57:07 vili sddm-greeter-qt6[3579]: Couldn't load pipewire-0.3 library
Jan 28 09:57:07 vili sddm-greeter-qt6[3579]: Couldn't resolve pipewire-0.3 symbols
Jan 28 09:57:07 vili sddm-greeter-qt6[3579]: Adding view for "eDP-1" QRect(0,0 1707x960)
Jan 28 09:57:07 vili sddm-greeter-qt6[3579]: Message received from daemon: Capabilities
Jan 28 09:57:07 vili sddm-greeter-qt6[3579]: Message received from daemon: HostName

Link to my flake: ~vendion/vendionOS - My personal NixOS Flake - sourcehut git
Direct link to my SDDM config: ~vendion/vendionOS (master): hosts/common/optional/services/sddm.nix - sourcehut git
Direct links to my Plasma config:

Any help in figuring out the cause of this would be greatly appreciated!

Bump?

I’m still not having any luck in figuring this out myself…

Hello
So a few things you should try:

  1. Use a different displaymanager like ly or so and see if that works.
  2. Create a new user and try logging in the first time with wayland: NixOS + Wayland + Plasma + Nvidia causes black screen on login with only mouse visible
  3. Have you set QT_STYLE_OVERRIDE to gtk or something in you config: Reddit - Dive into anything
  4. can you post the output of cat ~/.local/share/sddm/wayland-session.log
  • Use a different displaymanager like ly or so and see if that works. - Swiching to a different displaymanager/greeter works as expected, but switching back to SDDM again has the same problem
  • Create a new user and try logging in the first time with wayland - Have the same problem regardless of if I use a newly created user/removing all KDE Plasma settings for my current user
  • Have you set QT_STYLE_OVERRIDE to gtk or something in you config - That environment variable is not even set
  • can you post the output of cat ~/.local/share/sddm/wayland-session.log - I already did in my orginal post and in the issue I linked to. It just has a single line in it.
/nix/store/n7qy5f46ag2320dajrxdggg788v99kaw-sddm-unwrapped-0.21.0/share/sddm/scripts/wayland-session:49: no such file or directory: /nix/store/sw9amjplk1al9ik84ln9scqqsx32x3dl-plasma-workspace-6.2.5/libexec/plasma-dbus-run-session-if-needed /nix/store/sw9amjplk1al9ik84ln9scqqsx32x3dl-plasma-workspace-6.2.5/bin/startplasma-wayland

Sorry my mistake.
So I found a recent “bug” on another forum. CRITICAL: Black screen in Wayland after recent update - #25 by wsirhc - Help - KDE Discuss
Can you post your specs (especially which gpu and gpu drivers you are using).
If you have a nvidia try setting fbdev=1.

This is happening on three different devices.

  • ThinkPad P50 GPU: Nvidia Quadro M1000M Driver Nvidia 550.142 / Mesa Intel® HD Graphics 530
  • Pine64 Pinebook Pro GPU: ARM Mali-T860MP4 Quad-core
  • Qemu/KVM VM GPU: virtio

Setting fbdev=1 didn’t seem to make any difference.

Do you have the same config for these three devices?
Also have you updatet your system and than you got this issue or have you changed something in you config?
Can you also try to log into your X-11 Session change the Theme, log out and try logging into the Wayland session again?
https://www.reddit.com/r/archlinux/comments/1b85fd5/plasma_6_wayland_session_broken/
But reading the output of the log it seems like a Nixos Bug.

Yes, I have a common flake that I use for all my machines, unfortunately it has been this way ever since I switched from hyperland to KDE Plasma when 6.0 originally came out. Now I thought that it would be just a temporary issue, and managed to find my current workaround of bypassing SDDM by going to a TTY and manually the startplasma-wayland command.

Can you also try to log into your X-11 Session change the Theme, log out and try logging into the Wayland session again?

I did try that a while back with no luck, but now I have my KDE settings being managed by GitHub - nix-community/plasma-manager: Manage KDE Plasma with Home Manager and GitHub - danth/stylix: System-wide colorscheming and typography for NixOS to manage my plasma configs and theme.

But reading the output of the log it seems like a Nixos Bug.

That is what I thought as well which is why I opened the bug report to the nixpkgs repo back in November but that didn’t get much visibility.

OK so what you could try is repairing the store with these commands:

nix store repair /nix/store/sw9amjplk1al9ik84ln9scqqsx32x3dl-plasma-workspace-6.2.5
nix store repair /nix/store/n7qy5f46ag2320dajrxdggg788v99kaw-sddm-unwrapped-0.21.0/share/sddm/scripts/wayland-session:49: 

nix-store --verify --check-contents --repair