<hpfr>
I have `[ "$(tty)" = "/dev/tty1" ] && ! pgrep -x X >/dev/null && exec startx` in my programs.bash.profileExtra lines. When I run nixos-rebuild switch (using hm module), X tries to start
<hpfr>
this should not happen due to the second (and probably first as well) condition
<hpfr>
oh wait it's trying to run my old .profile which always started X
<hpfr>
this complicates rebuilding because the rebuild tries to start X, which fails, and then home-manager.service fails due to X failing, so rebuilding fails