2014-05-05 19:58:51 +01:00
|
|
|
{lib, pkgs, config, ...}:
|
2013-09-01 19:18:48 +01:00
|
|
|
|
|
|
|
let
|
2014-05-05 19:58:51 +01:00
|
|
|
inherit (lib) mkOption mkIf;
|
2013-09-01 19:18:48 +01:00
|
|
|
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
|
|
|
|
";
|
|
|
|
}];
|
|
|
|
};
|
2013-10-30 16:52:35 +00:00
|
|
|
environment.systemPackages = [ pkgs.openbox ];
|
2013-09-01 19:18:48 +01:00
|
|
|
};
|
|
|
|
}
|