xmonad: use compiled configuration when config is not null (#1893)
If the configuration is `null`, the compiled configuration `xmonadBin` should not be used and instead the WM startup command should be set to the bare `xmonad` binary.
This commit is contained in:
parent
33edf558a0
commit
e5a260a569
|
@ -132,12 +132,12 @@ in {
|
|||
}/bin/xmonad-${pkgs.hostPlatform.system}";
|
||||
|
||||
in mkIf cfg.enable (mkMerge [
|
||||
{
|
||||
home.packages = [ (lowPrio xmonad) ];
|
||||
xsession.windowManager.command = xmonadBin;
|
||||
}
|
||||
|
||||
{ home.packages = [ (lowPrio xmonad) ]; }
|
||||
(mkIf (cfg.config == null) {
|
||||
xsession.windowManager.command = "${xmonad}/bin/xmonad";
|
||||
})
|
||||
(mkIf (cfg.config != null) {
|
||||
xsession.windowManager.command = xmonadBin;
|
||||
home.file.".xmonad/xmonad.hs".source = cfg.config;
|
||||
home.file.".xmonad/xmonad-${pkgs.hostPlatform.system}" = {
|
||||
source = xmonadBin;
|
||||
|
|
Loading…
Reference in a new issue