nixpkgs/nixos/modules/services/x11/window-managers/default.nix

83 lines
1.6 KiB
Nix
Raw Normal View History

{ config, lib, ... }:
with lib;
let
cfg = config.services.xserver.windowManager;
in
{
imports = [
2017-03-24 07:25:31 -07:00
./2bwm.nix
2015-02-28 06:14:33 -08:00
./afterstep.nix
./bspwm.nix
./cwm.nix
2015-12-02 14:27:52 -08:00
./dwm.nix
./evilwm.nix
2016-03-05 05:13:40 -08:00
./exwm.nix
2015-02-24 19:53:38 -08:00
./fluxbox.nix
./fvwm.nix
./herbstluftwm.nix
./i3.nix
2016-03-07 06:21:53 -08:00
./jwm.nix
2019-05-23 08:08:44 -07:00
./leftwm.nix
./metacity.nix
2016-07-27 10:34:26 -07:00
./mwm.nix
./openbox.nix
2016-07-03 13:09:12 -07:00
./pekwm.nix
./notion.nix
./ratpoison.nix
./sawfish.nix
2020-05-11 19:53:02 -07:00
./smallwm.nix
./stumpwm.nix
2015-03-15 20:24:54 -07:00
./spectrwm.nix
./tinywm.nix
./twm.nix
./windowmaker.nix
./wmii.nix
./xmonad.nix
./yeahwm.nix
2015-07-29 22:31:53 -07:00
./qtile.nix
2020-04-02 01:07:18 -07:00
./none.nix ];
options = {
services.xserver.windowManager = {
session = mkOption {
2013-10-30 09:37:45 -07:00
internal = true;
default = [];
example = [{
name = "wmii";
start = "...";
}];
description = ''
Internal option used to add some common line to window manager
scripts before forwarding the value to the
<varname>displayManager</varname>.
'';
apply = map (d: d // {
manage = "window";
});
};
default = mkOption {
type = types.nullOr types.str;
default = null;
example = "wmii";
description = ''
<emphasis role="strong">Deprecated</emphasis>, please use <xref linkend="opt-services.xserver.displayManager.defaultSession"/> instead.
Default window manager loaded if none have been chosen.
'';
};
};
};
config = {
services.xserver.displayManager.session = cfg.session;
};
}