mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-11 17:39:37 +08: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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user