mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 18:26:45 +01:00
25 lines
463 B
Nix
25 lines
463 B
Nix
{lib, pkgs, config, ...}:
|
|
|
|
with lib;
|
|
let
|
|
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 ];
|
|
};
|
|
}
|