For a long time now, I’ve been using stumpwm with NixOS with a lot of happiness, except that every time I nixos-rebuild switch, even for a very minor change to my configuration.nix (e.g. removing something from environment.systemPackages), stumpwm restarts and, unlike a normal restart of stumpwm, it loses all its windows. The processes that those windows were showing are still running though.
This happens even if I have no personal stumpwm configuration (no .stumpwmrc or equivalent).
I’m at a loss for how to debug this. Has anyone else experienced it?
Only curious- what login manager are you using? I ask because I face a similar problem where my x server stops accepting new connections after switch (so no new windows). I beleive my problem is rooted in my usage of startx.
looks like Gdm has the same parameters too,display, tty = null so not sure why your problem occurs (mine should be resolved by setting these two params in startx.nix.)
(I’m just noting my research here really since i’ve washed my curtains and it’s too bright for me to read much on the monitor)
Can you print the output of nixos-option services.xserver.displayManager.xserverArgs with the offending configuration?