2009-01-25 15:49:08 +00:00
|
|
|
{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 = {
|
2009-06-25 22:08:03 +00:00
|
|
|
x11Packages = [
|
2009-01-25 15:49:08 +00:00
|
|
|
pkgs.kdelibs
|
|
|
|
pkgs.kdebase
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|