nixpkgs-suyu/modules/services/x11/window-managers/openbox.nix
Antono Vasiljev 16c0a24cad Openbox
2013-09-01 21:18:48 +03:00

30 lines
601 B
Nix

{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 ];
};
}