2020-04-24 23:36:52 +00:00
|
|
|
{lib, pkgs, config, ...}:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
let
|
|
|
|
cfg = config.services.xserver.windowManager.openbox;
|
|
|
|
in
|
|
|
|
|
|
|
|
{
|
|
|
|
options = {
|
2022-09-09 14:08:57 +00:00
|
|
|
services.xserver.windowManager.openbox.enable = mkEnableOption (lib.mdDoc "openbox");
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
services.xserver.windowManager = {
|
|
|
|
session = [{
|
|
|
|
name = "openbox";
|
|
|
|
start = "
|
|
|
|
${pkgs.openbox}/bin/openbox-session
|
|
|
|
";
|
|
|
|
}];
|
|
|
|
};
|
|
|
|
environment.systemPackages = [ pkgs.openbox ];
|
|
|
|
};
|
|
|
|
}
|