2014-04-14 16:26:48 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
2013-11-09 02:38:15 +01:00
|
|
|
|
2014-04-14 16:26:48 +02:00
|
|
|
with lib;
|
2013-11-09 02:38:15 +01:00
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.services.xserver.windowManager.herbstluftwm;
|
|
|
|
in
|
|
|
|
|
|
|
|
{
|
|
|
|
options = {
|
|
|
|
services.xserver.windowManager.herbstluftwm.enable = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
default = false;
|
|
|
|
example = true;
|
|
|
|
description = "Enable the herbstluftwm window manager.";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
services.xserver.windowManager.session = singleton {
|
|
|
|
name = "herbstluftwm";
|
|
|
|
start = "
|
|
|
|
${pkgs.herbstluftwm}/bin/herbstluftwm
|
|
|
|
";
|
|
|
|
};
|
|
|
|
environment.systemPackages = [ pkgs.herbstluftwm ];
|
|
|
|
};
|
|
|
|
}
|