1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-20 12:42:24 +00:00
nixpkgs/nixos/modules/services/x11/window-managers/openbox.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 ];
};
}