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
1 changed files with 5 additions and 5 deletions
|
@ -132,12 +132,12 @@ in {
|
||||||
}/bin/xmonad-${pkgs.hostPlatform.system}";
|
}/bin/xmonad-${pkgs.hostPlatform.system}";
|
||||||
|
|
||||||
in mkIf cfg.enable (mkMerge [
|
in mkIf cfg.enable (mkMerge [
|
||||||
{
|
{ home.packages = [ (lowPrio xmonad) ]; }
|
||||||
home.packages = [ (lowPrio xmonad) ];
|
(mkIf (cfg.config == null) {
|
||||||
xsession.windowManager.command = xmonadBin;
|
xsession.windowManager.command = "${xmonad}/bin/xmonad";
|
||||||
}
|
})
|
||||||
|
|
||||||
(mkIf (cfg.config != null) {
|
(mkIf (cfg.config != null) {
|
||||||
|
xsession.windowManager.command = xmonadBin;
|
||||||
home.file.".xmonad/xmonad.hs".source = cfg.config;
|
home.file.".xmonad/xmonad.hs".source = cfg.config;
|
||||||
home.file.".xmonad/xmonad-${pkgs.hostPlatform.system}" = {
|
home.file.".xmonad/xmonad-${pkgs.hostPlatform.system}" = {
|
||||||
source = xmonadBin;
|
source = xmonadBin;
|
||||||
|
|
Loading…
Reference in a new issue