This commit is contained in:
Antono Vasiljev 2013-09-01 21:18:48 +03:00
parent 388f1d48fb
commit 16c0a24cad
2 changed files with 31 additions and 0 deletions

View File

@ -8,6 +8,7 @@ in
{
imports = [
./compiz.nix
./openbox.nix
./kwm.nix
./metacity.nix
./none.nix

View File

@ -0,0 +1,30 @@
{pkgs, config, ...}:
let
inherit (pkgs.lib) mkOption mkIf;
cfg = config.services.xserver.windowManager.openbox;
in
{
options = {
services.xserver.windowManager.openbox = {
enable = mkOption {
default = false;
example = true;
description = "Enable the Openbox window manager.";
};
};
};
config = mkIf cfg.enable {
services.xserver.windowManager = {
session = [{
name = "openbox";
start = "
${pkgs.openbox}/bin/openbox-session
";
}];
};
environment.x11Packages = [ pkgs.openbox ];
};
}