leftwm: enable service

This commit is contained in:
Markus Schneider 2019-05-23 17:08:44 +02:00 committed by Lassulus
parent 0ae372dcde
commit c30bd387d2
2 changed files with 26 additions and 0 deletions

View File

@ -19,6 +19,7 @@ in
./herbstluftwm.nix
./i3.nix
./jwm.nix
./leftwm.nix
./metacity.nix
./mwm.nix
./openbox.nix

View File

@ -0,0 +1,25 @@
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.services.xserver.windowManager.leftwm;
in
{
###### interface
options = {
services.xserver.windowManager.leftwm.enable = mkEnableOption "leftwm";
};
###### implementation
config = mkIf cfg.enable {
services.xserver.windowManager.session = singleton {
name = "leftwm";
start = ''
${pkgs.leftwm}/bin/leftwm &
waitPID=$!
'';
};
environment.systemPackages = [ pkgs.leftwm ];
};
}