Trouble starting window manager

This example config can maybe help you out. It consists of two parts:

This was initially suggested by rycee: Opening i3 from home-manager automatically - #8 by rycee . Hopefully this addition makes it work for you.

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.

1 Like