Add wmii package in the environment if wmii WM is enabled.

svn path=/nixos/branches/modular-nixos/; revision=14991
This commit is contained in:
Nicolas Pierron 2009-04-11 22:28:38 +00:00
parent 33a0873f6f
commit 3a8ef07934

View File

@ -3,22 +3,28 @@
let
inherit (pkgs.lib) mkOption mkIf;
cfg = config.services.xserver.windowManager.wmii;
option = { services = { xserver = { windowManager = {
wmii = {
enable = mkOption {
default = false;
example = true;
description = "Enable the wmii window manager.";
};
};
}; }; }; };
in
{
mkIf cfg.enable {
require = option;
services = {
xserver = {
windowManager = {
wmii = {
enable = mkOption {
default = false;
example = true;
description = "Enable the wmii window manager.";
};
};
session = mkIf cfg.enable [{
session = [{
name = "wmii";
start = "
${pkgs.wmiiSnap}/bin/wmii &
@ -29,4 +35,10 @@ in
};
};
environment = {
extraPackages = [
pkgs.wmiiSnap
];
};
}