Xorg modules missing after upgrade NixOS 19.09 -> 20.03

Hi there,

I upgraded NixOS (rather late) from 19.09 to 20.03 as described in NixOS - NixOS 21.05 manual . Now I can’t start X anymore; the logs can be seen here: https://gist.github.com/corsinpfister/901f8c6439f82dac475bf06368aae2df
I get errors like these:

[ 27.571] (EE) Failed to load module “intel” (module does not exist, 0)
[ 27.573] (EE) Failed to load module “fbdev” (module does not exist, 0)
[ 27.573] (EE) Failed to load module “vesa” (module does not exist, 0)
[ 28.470] (EE) Failed to load module “libinput” (module does not exist, 0)

What could be the problem, any hints?
I’m rather new to NixOS and don’t know much about xorg, so any help is appreciated.

Can you show us your hardware-configuration.nix and at least the parts of configuration.nix which configures your xsession? :slight_smile:

Thanks Melkor333 for your reply :slight_smile:

hardware-configuration.nix: https://gist.github.com/corsinpfister/e50b1943cb0fc46f92202af937ff7a2b
configuration.nix: https://gist.github.com/corsinpfister/7c654f2596c6c6903651329049a01690

And in case it’s relevant, I’m using home manager, and here is my home.nix: https://gist.github.com/corsinpfister/4dde6bc0ba4b8d80300526165fbd26c4

I assume the commented out lines in your configuration.nix are usually used for desktop and you‘re using KDE?
Your xsession settings from the configuration.nix work well for me, but I am on the unstable branch and I have some more stuff going on plus completely different home-manager settings.
Can you add services.xserver.videoDrivers = [ "intel" ]; to your settings and see if this changes anything (in the logs)?

Also it may be that the home-manager setting does something which makes the xserver fail. That’s what used to happen to me in the past. So commenting everything out in the home-manager config could be another try. If it then works, uncommenting block for block should point to the setting which is causing the problem.

PS: Greetings from Winterthur :slight_smile:

1 Like