nixpkgs/nixos/modules/services/x11/window-managers/openbox.nix

30 lines
604 B
Nix

{lib, pkgs, config, ...}:
let
inherit (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.systemPackages = [ pkgs.openbox ];
};
}