2014-04-14 15:26:48 +01:00
|
|
|
{ config, lib, pkgs, ... }:
|
2013-11-09 01:38:15 +00:00
|
|
|
|
2014-04-14 15:26:48 +01:00
|
|
|
with lib;
|
2013-11-09 01:38:15 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.services.xserver.windowManager.herbstluftwm;
|
|
|
|
in
|
|
|
|
|
|
|
|
{
|
|
|
|
options = {
|
2015-12-04 09:38:23 +00:00
|
|
|
services.xserver.windowManager.herbstluftwm.enable = mkEnableOption "herbstluftwm";
|
2013-11-09 01:38:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
services.xserver.windowManager.session = singleton {
|
|
|
|
name = "herbstluftwm";
|
|
|
|
start = "
|
|
|
|
${pkgs.herbstluftwm}/bin/herbstluftwm
|
|
|
|
";
|
|
|
|
};
|
|
|
|
environment.systemPackages = [ pkgs.herbstluftwm ];
|
|
|
|
};
|
|
|
|
}
|