1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-28 08:31:59 +00:00
nixpkgs/nixos/modules
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
..
config nixos/modules: remove trailing whitespace 2020-08-07 14:45:39 +01:00
hardware nixos/*: editorconfig fixes 2020-08-08 10:54:16 +10:00
i18n/input-method nixos/modules: remove trailing whitespace 2020-08-07 14:45:39 +01:00
installer nixos/*: editorconfig fixes 2020-08-08 10:54:16 +10:00
misc nixos/zigbee2mqtt: init 2020-07-20 21:48:14 +02:00
profiles nixos/displayManager: make autoLogin options independent of DM type 2020-07-09 21:15:35 -04:00
programs nixos/*: editorconfig fixes 2020-08-08 10:54:16 +10:00
security pam_p11: add 2020-07-25 09:37:48 +02:00
services nixos/xmonad: Fix behavior of config opt 2020-08-10 19:17:54 -07:00
system nixos/*: editorconfig fixes 2020-08-08 10:54:16 +10:00
tasks nixos/networking: Enhance hostId description (#94800) 2020-08-08 20:30:50 +01:00
testing
virtualisation nixos/railcar: fix typo 2020-08-07 18:00:28 +02:00
module-list.nix nixos/jupyterhub: init service 2020-08-10 10:03:43 -07:00
rename.nix nixos/displayManager: make autoLogin options independent of DM type 2020-07-09 21:15:35 -04:00