I’m having trouble setting up NixOS with i3 on a new machine. After booting, I see LightDM, but after typing in my credentials, I see “Failed to start session”.
I’m relatively new to Nix(OS) and appreciate any help!
Update:
What’s odd: If I remove the xsession configuration from home.nix and set services.xserver.windowManager.i3.enable = true in configuration.nix, it works. But i would like to configure it per-user.
EDIT: Why it works when you add it to the root config: because then you are hooking into the system-wide system for hooking up display and window managers. However if you install i3 through home-manager, the system-wide nix config does not know about “user” i3’s existence, and therefore you have to add some manual glue code to make it work. At least that’s my understanding as a nixos noob.