Sddm display manager doesn't work on NixOS 21.11, nixos-unstable

I tried switching from gnome/gdm to KDE plasma5/sddm. However, sddm fails to launch and drops me into shell, and this is the error I got with journalctl -p 3 -xb:

 4月 10 15:47:53 nixos kernel: platform MSFT0101:00: failed to claim resource 1: [mem 0xfed40000-0xfed40fff]
 4月 10 15:47:53 nixos kernel: acpi MSFT0101:00: platform device creation failed: -16
 4月 10 15:47:54 nixos kernel: leds platform::micmute: Setting an LED's brightness failed (-19)
 4月 10 15:47:54 nixos kernel: leds platform::micmute: Setting an LED's brightness failed (-19)
 4月 10 15:47:55 nixos dhcpcd[749]: no valid interfaces found
 4月 10 15:47:56 nixos sddm[1028]: Failed to read display number from pipe
 4月 10 15:47:56 nixos sddm[1028]: Could not start Display server on vt 7

Failed to read display number from pipe seems to have something to do with graphics, what would be a solution for NixOS?
I tried to run on Matebook E (2017) with Intel HD Graphics 515. Both 21.11 and nixos-unstable failed.

I’m on NixOS unstable right now using both SDDM and Plasma just fine.

Can you please post your config so maybe people can take a look?

1 Like

I just replaced

services.xserver.displayManager.gdm.enable = true;
services.xserver.desktopManager.gnome.enable = true;

with this:

  services.xserver.displayManager.sddm.enable = true;
  services.xserver.desktopManager.plasma5.enable = true;

I tried the similar configuration on my another laptop (Dell G5 15 5590) and worked without issues, so this issue might be something specific to Matebook E’s hardware… I will test if it even boot from KDE version of NixOS live USB.

sddm worked on Matebook E with default generated config, I’ll try finding out wheat caused the error.