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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
463 B
Nix
Raw Normal View History

{lib, pkgs, config, ...}:
2013-09-01 18:18:48 +00:00
2015-12-04 14:32:21 +00:00
with lib;
2013-09-01 18:18:48 +00:00
let
cfg = config.services.xserver.windowManager.openbox;
in
{
options = {
2016-02-24 11:54:08 +00:00
services.xserver.windowManager.openbox.enable = mkEnableOption "openbox";
2015-12-04 14:32:21 +00:00
};
2013-09-01 18:18:48 +00:00
config = mkIf cfg.enable {
services.xserver.windowManager = {
session = [{
name = "openbox";
start = "
${pkgs.openbox}/bin/openbox-session
";
}];
};
environment.systemPackages = [ pkgs.openbox ];
2013-09-01 18:18:48 +00:00
};
}