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