mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 06:03:40 +00:00
b690751956
svn path=/nixos/trunk/; revision=21549
47 lines
725 B
Nix
47 lines
725 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.kde3.kdebase}/bin/kwin &
|
|
waitPID=$!
|
|
";
|
|
}];
|
|
};
|
|
|
|
};
|
|
};
|
|
|
|
environment = {
|
|
x11Packages = [
|
|
pkgs.kde3.kdelibs
|
|
pkgs.kde3.kdebase
|
|
];
|
|
};
|
|
}
|