2014-05-05 20:58:51 +02:00
|
|
|
{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
|
|
|
|
cfg = config.services.xserver.windowManager.openbox;
|
|
|
|
in
|
|
|
|
|
|
|
|
{
|
|
|
|
options = {
|
2016-02-24 12:54:08 +01:00
|
|
|
services.xserver.windowManager.openbox.enable = mkEnableOption "openbox";
|
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
|
|
|
|
";
|
|
|
|
}];
|
|
|
|
};
|
2013-10-30 17:52:35 +01:00
|
|
|
environment.systemPackages = [ pkgs.openbox ];
|
2013-09-01 20:18:48 +02:00
|
|
|
};
|
|
|
|
}
|