mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 09:31:01 +00:00
26 lines
494 B
Nix
26 lines
494 B
Nix
{lib, pkgs, config, ...}:
|
|
|
|
with lib;
|
|
let
|
|
inherit (lib) mkOption mkIf;
|
|
cfg = config.services.xserver.windowManager.openbox;
|
|
in
|
|
|
|
{
|
|
options = {
|
|
services.xserver.windowManager.openbox.enable = mkEnableOption "openbox";
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
services.xserver.windowManager = {
|
|
session = [{
|
|
name = "openbox";
|
|
start = "
|
|
${pkgs.openbox}/bin/openbox-session
|
|
";
|
|
}];
|
|
};
|
|
environment.systemPackages = [ pkgs.openbox ];
|
|
};
|
|
}
|