1
0
Fork 0
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:
Nicolas Berbiche 2021-04-07 13:05:21 -04:00 committed by GitHub
parent 33edf558a0
commit e5a260a569
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;