2020-04-24 23:36:52 +00:00
|
|
|
{ config, lib, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.services.xserver.windowManager;
|
|
|
|
in
|
|
|
|
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
./2bwm.nix
|
|
|
|
./afterstep.nix
|
2020-05-15 21:57:56 +00:00
|
|
|
./berry.nix
|
2020-04-24 23:36:52 +00:00
|
|
|
./bspwm.nix
|
|
|
|
./cwm.nix
|
2021-01-15 22:18:51 +00:00
|
|
|
./clfswm.nix
|
2023-07-15 17:15:38 +00:00
|
|
|
./dk.nix
|
2020-04-24 23:36:52 +00:00
|
|
|
./dwm.nix
|
2021-04-13 19:44:15 +00:00
|
|
|
./e16.nix
|
2020-04-24 23:36:52 +00:00
|
|
|
./evilwm.nix
|
|
|
|
./exwm.nix
|
|
|
|
./fluxbox.nix
|
2022-08-12 12:06:08 +00:00
|
|
|
./fvwm2.nix
|
|
|
|
./fvwm3.nix
|
|
|
|
./hackedbox.nix
|
2020-04-24 23:36:52 +00:00
|
|
|
./herbstluftwm.nix
|
2022-10-21 18:38:19 +00:00
|
|
|
./hypr.nix
|
2020-04-24 23:36:52 +00:00
|
|
|
./i3.nix
|
|
|
|
./jwm.nix
|
|
|
|
./leftwm.nix
|
2020-05-15 21:57:56 +00:00
|
|
|
./lwm.nix
|
2020-04-24 23:36:52 +00:00
|
|
|
./metacity.nix
|
2021-08-05 21:33:18 +00:00
|
|
|
./mlvwm.nix
|
2020-04-24 23:36:52 +00:00
|
|
|
./mwm.nix
|
|
|
|
./openbox.nix
|
|
|
|
./pekwm.nix
|
|
|
|
./notion.nix
|
2023-10-09 19:29:22 +00:00
|
|
|
./ragnarwm.nix
|
2020-04-24 23:36:52 +00:00
|
|
|
./ratpoison.nix
|
|
|
|
./sawfish.nix
|
2020-05-15 21:57:56 +00:00
|
|
|
./smallwm.nix
|
2020-04-24 23:36:52 +00:00
|
|
|
./stumpwm.nix
|
|
|
|
./spectrwm.nix
|
2020-05-15 21:57:56 +00:00
|
|
|
./tinywm.nix
|
2020-04-24 23:36:52 +00:00
|
|
|
./twm.nix
|
|
|
|
./windowmaker.nix
|
2021-04-12 18:23:04 +00:00
|
|
|
./wmderland.nix
|
2020-04-24 23:36:52 +00:00
|
|
|
./wmii.nix
|
|
|
|
./xmonad.nix
|
2020-05-15 21:57:56 +00:00
|
|
|
./yeahwm.nix
|
2020-04-24 23:36:52 +00:00
|
|
|
./qtile.nix
|
|
|
|
./none.nix ];
|
|
|
|
|
|
|
|
options = {
|
|
|
|
|
|
|
|
services.xserver.windowManager = {
|
|
|
|
|
|
|
|
session = mkOption {
|
|
|
|
internal = true;
|
|
|
|
default = [];
|
|
|
|
example = [{
|
|
|
|
name = "wmii";
|
|
|
|
start = "...";
|
|
|
|
}];
|
2024-04-21 15:54:59 +00:00
|
|
|
description = ''
|
2020-04-24 23:36:52 +00:00
|
|
|
Internal option used to add some common line to window manager
|
|
|
|
scripts before forwarding the value to the
|
2022-09-09 14:08:57 +00:00
|
|
|
`displayManager`.
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
apply = map (d: d // {
|
|
|
|
manage = "window";
|
|
|
|
});
|
|
|
|
};
|
|
|
|
|
|
|
|
default = mkOption {
|
|
|
|
type = types.nullOr types.str;
|
|
|
|
default = null;
|
|
|
|
example = "wmii";
|
2024-04-21 15:54:59 +00:00
|
|
|
description = ''
|
|
|
|
**Deprecated**, please use [](#opt-services.displayManager.defaultSession) instead.
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
Default window manager loaded if none have been chosen.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
config = {
|
|
|
|
services.xserver.displayManager.session = cfg.session;
|
|
|
|
};
|
|
|
|
}
|