add herbstluftwm enable option
This commit is contained in:
parent
8d52c9066e
commit
2f69aaf721
@ -17,6 +17,7 @@ in
|
|||||||
./xmonad.nix
|
./xmonad.nix
|
||||||
./i3.nix
|
./i3.nix
|
||||||
./xbmc.nix
|
./xbmc.nix
|
||||||
|
./herbstluftwm.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
options = {
|
options = {
|
||||||
|
28
nixos/modules/services/x11/window-managers/herbstluftwm.nix
Normal file
28
nixos/modules/services/x11/window-managers/herbstluftwm.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user