mirror of
https://github.com/nix-community/home-manager.git
synced 2024-12-14 11:57:55 +00:00
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}";
|
||||
|
||||
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