Open not7cd opened 2 years ago
Perhaps add documentation explaining that one must add an export KDEWM=${pkgs.i3-gaps}/bin/i3
to: https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/x11/display-managers/default.nix#L87
Something like
services.xserver.displayManager.sessionCommands = "export KDEWM=${pkgs.i3-gaps}/bin/i3";
As I wanted to run i3wm within Plasma5 DE, I came to this solution.
After enabling both
plasma5
andi3
nixos generates session profiles. One of them isplasma5+i3
, but the config is quite naive, as it doesn't respect how plasma5 expects window manager to be supplied. Only one of them starts, and they don't integrate at all. This session is generated by this script.https://github.com/NixOS/nixpkgs/blob/06edb74413eb4e4ac56921ef2c038d8f106b15df/nixos/modules/services/x11/display-managers/default.nix
Here is a custom session that enables more proper behavior, at lest in my opinion, and according to previously mentioned solution.
I currently would propose to, whenever config for plasma5 is generated:
exec
window manager executable before desktop managerenv KDEWM=$PATH_TO_WM_EXECUTABLE
before executing startplasma-x11