2020-04-24 23:36:52 +00:00
|
|
|
{lib, pkgs, config, ...}:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
let
|
|
|
|
cfg = config.services.xserver.windowManager.openbox;
|
|
|
|
in
|
|
|
|
|
|
|
|
{
|
|
|
|
options = {
|
2024-04-21 15:54:59 +00:00
|
|
|
services.xserver.windowManager.openbox.enable = mkEnableOption "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 ];
|
|
|
|
};
|
|
|
|
}
|