2009-01-25 16:49:08 +01: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 = "
|
2010-05-01 22:25:57 +02:00
|
|
|
${pkgs.kde3.kdebase}/bin/kwin &
|
2009-01-25 16:49:08 +01:00
|
|
|
waitPID=$!
|
|
|
|
";
|
|
|
|
}];
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
environment = {
|
2009-06-26 00:08:03 +02:00
|
|
|
x11Packages = [
|
2010-05-01 22:25:57 +02:00
|
|
|
pkgs.kde3.kdelibs
|
|
|
|
pkgs.kde3.kdebase
|
2009-01-25 16:49:08 +01:00
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|