nixpkgs-suyu/nixos/modules/services/x11/window-managers
Kurt Robert Rudolph c54beb953d nixos/xmonad: Fix behavior of config opt
Prior to this change, the `config` option (which allows you define the
haskell configuration for xmonad in your configuration.nix instead of
needing something in the home directory) prevents desktop manager
resources from starting. This can be demonstrated by configuring the
following:

```
  services.xserver = {
    displayManager.defaultSession = "xfce+xmonad";
    displayManager.lightdm.enable = true;

    desktopManager.xterm.enable = false;
    desktopManager.xfce.enable = true;
    desktopManager.xfce.enableXfwm = false;
    desktopManager.xfce.noDesktop = true;

    windowManager.xmonad = {
      enable = true;
      enableContribAndExtras = true;
      extraPackages = haskellPackages: [
        haskellPackages.xmonad-contrib
        haskellPackages.xmonad-extras
        haskellPackages.xmonad
      ];
      config = ''
        import XMonad
        import XMonad.Config.Xfce
        main = xmonad xfceConfig
               { terminal = "terminator"
               , modMask = mod4Mask }
      '';
    };
  };
```

and after user log in, search for xfce processes `ps aux | grep xfce`.
You will not find xfce processes running until after the xmonad process is killed.

The bug prevents utilities included with the desktopManager,
(e.g. powerManagement, session logout, etc.)
from working as expected.
2020-08-10 19:17:54 -07:00
..
2bwm.nix
afterstep.nix
awesome.nix
berry.nix berry: init at 0.1.5 2020-05-13 21:32:54 -03:00
bspwm.nix
clfswm.nix
cwm.nix
default.nix lwm: init at 1.2.4 2020-05-13 21:32:54 -03:00
dwm.nix
evilwm.nix
exwm.nix
fluxbox.nix
fvwm.nix
herbstluftwm.nix
i3.nix
icewm.nix
jwm.nix
leftwm.nix
lwm.nix lwm: init at 1.2.4 2020-05-13 21:32:54 -03:00
metacity.nix
mwm.nix
none.nix Revert "nixos/none: remove" 2020-04-02 04:07:18 -04:00
notion.nix
openbox.nix
oroborus.nix
pekwm.nix
qtile.nix nixos/modules: remove trailing whitespace 2020-08-07 14:45:39 +01:00
ratpoison.nix
sawfish.nix
smallwm.nix smallwm: init at 2020-02-28 2020-05-13 21:32:54 -03:00
spectrwm.nix
stumpwm.nix
tinywm.nix tinywm: init at 2014-04-22 2020-05-08 15:29:25 -03:00
twm.nix
windowlab.nix
windowmaker.nix
wmii.nix
xmonad.nix nixos/xmonad: Fix behavior of config opt 2020-08-10 19:17:54 -07:00
yeahwm.nix yeahwm: init at 0.3.5 2020-05-13 21:32:54 -03:00