After inputting login info, all I got is a blank screen. I tried pressing Windows key + Return, which is my config in sxhkd to open a new Terminal window, but nothing shows up
Have you checked versions from each repository and documentation/changelog if your config might contain stuff that is not allowed yet/anymore in the nix version?
It’s worth mentioning that these configurations don’t copy thee configuration file into the VM, they’re treated as strings, without any other meaning. Further $HOME/.config/bspwm/bspwmrc is the default when nothing is specified. Perhaps you need to copy these files into the VM and/or remove these values from your configuration.
Many thanks. I removed those 2 lines and it works!
I actually have these files at these locations but I don’t understand why NixOS doesn’t read them.
Supposed that I want to place these files at $HOME/.config/bspwmrc and $HOME/.config/sxhkdrc (non-default locations), how should I config these locations for windowManager.bspwm.configFile and windowManager.bspwm.sxhkd.configFile?
From looking at the code implementing those modules (nixpkgs/bspwm.nix at 6ca121a4793ced5279e26f0d51c2d08bf21799a3 · NixOS/nixpkgs · GitHub). It seems to any configuration done there becomes an argument to bspwm when run. It’s run in a shell, under the user’s profile. Perhaps the string $HOME/.config/bspwmrc without the builtins.getEnv would work.