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
|
let
|
||||||
inherit (pkgs.lib) mkOption mkIf;
|
inherit (pkgs.lib) mkOption mkIf;
|
||||||
cfg = config.services.xserver.windowManager.wmii;
|
cfg = config.services.xserver.windowManager.wmii;
|
||||||
|
|
||||||
|
option = { services = { xserver = { windowManager = {
|
||||||
|
|
||||||
|
wmii = {
|
||||||
|
enable = mkOption {
|
||||||
|
default = false;
|
||||||
|
example = true;
|
||||||
|
description = "Enable the wmii window manager.";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
}; }; }; };
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
mkIf cfg.enable {
|
||||||
|
require = option;
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
xserver = {
|
xserver = {
|
||||||
|
|
||||||
windowManager = {
|
windowManager = {
|
||||||
wmii = {
|
session = [{
|
||||||
enable = mkOption {
|
|
||||||
default = false;
|
|
||||||
example = true;
|
|
||||||
description = "Enable the wmii window manager.";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
session = mkIf cfg.enable [{
|
|
||||||
name = "wmii";
|
name = "wmii";
|
||||||
start = "
|
start = "
|
||||||
${pkgs.wmiiSnap}/bin/wmii &
|
${pkgs.wmiiSnap}/bin/wmii &
|
||||||
@ -29,4 +35,10 @@ in
|
|||||||
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
environment = {
|
||||||
|
extraPackages = [
|
||||||
|
pkgs.wmiiSnap
|
||||||
|
];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user