nixpkgs/nixos/modules/services/x11/window-managers/openbox.nix

26 lines
495 B
Nix
Raw Normal View History

{lib, pkgs, config, ...}:
2013-09-01 20:18:48 +02:00
2015-12-04 15:32:21 +01:00
with lib;
2013-09-01 20:18:48 +02:00
let
inherit (lib) mkOption mkIf;
2013-09-01 20:18:48 +02:00
cfg = config.services.xserver.windowManager.openbox;
in
{
options = {
services.xserver.windowManager.openbox.enable = mkEnableOption "oroborus";
2015-12-04 15:32:21 +01:00
};
2013-09-01 20:18:48 +02:00
config = mkIf cfg.enable {
services.xserver.windowManager = {
session = [{
name = "openbox";
start = "
${pkgs.openbox}/bin/openbox-session
";
}];
};
environment.systemPackages = [ pkgs.openbox ];
2013-09-01 20:18:48 +02:00
};
}