mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 23:22:37 +00:00
Add wmii package in the environment if wmii WM is enabled.
svn path=/nixos/branches/modular-nixos/; revision=14991
This commit is contained in:
parent
33a0873f6f
commit
3a8ef07934
@ -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
|
||||
];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user