add herbstluftwm enable option

This commit is contained in:
David Virgilio 2013-11-08 19:38:15 -06:00 committed by Bjørn Forsman
parent 8d52c9066e
commit 2f69aaf721
2 changed files with 29 additions and 0 deletions

View File

@ -17,6 +17,7 @@ in
./xmonad.nix
./i3.nix
./xbmc.nix
./herbstluftwm.nix
];
options = {

View File

@ -0,0 +1,28 @@
{ config, pkgs, ... }:
with pkgs.lib;
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 ];
};
}