b2b6f92d6b
- xserver configuration & job - display manager (slim) - window manager (compiz, kwm, metacity, twm, wmii, xmonad) - desktop manager (kde, gnome, xterm) Added features: - Add WM choice in slim (with F1) svn path=/nixos/branches/fix-style/; revision=13857
47 lines
712 B
Nix
47 lines
712 B
Nix
{pkgs, config, ...}:
|
|
|
|
let
|
|
inherit (pkgs.lib) mkOption mkIf;
|
|
cfg = config.services.xserver.windowManager.kwm;
|
|
|
|
option = { services = { xserver = { windowManager = {
|
|
|
|
kwm = {
|
|
enable = mkOption {
|
|
default = false;
|
|
example = true;
|
|
description = "Enable the kwm window manager.";
|
|
};
|
|
|
|
};
|
|
|
|
}; }; }; };
|
|
in
|
|
|
|
mkIf cfg.enable {
|
|
require = option;
|
|
|
|
services = {
|
|
xserver = {
|
|
|
|
windowManager = {
|
|
session = [{
|
|
name = "kwm";
|
|
start = "
|
|
${pkgs.kdebase}/bin/kwin &
|
|
waitPID=$!
|
|
";
|
|
}];
|
|
};
|
|
|
|
};
|
|
};
|
|
|
|
environment = {
|
|
extraPackages = [
|
|
pkgs.kdelibs
|
|
pkgs.kdebase
|
|
];
|
|
};
|
|
}
|