leftwm: enable service
This commit is contained in:
parent
0ae372dcde
commit
c30bd387d2
@ -19,6 +19,7 @@ in
|
|||||||
./herbstluftwm.nix
|
./herbstluftwm.nix
|
||||||
./i3.nix
|
./i3.nix
|
||||||
./jwm.nix
|
./jwm.nix
|
||||||
|
./leftwm.nix
|
||||||
./metacity.nix
|
./metacity.nix
|
||||||
./mwm.nix
|
./mwm.nix
|
||||||
./openbox.nix
|
./openbox.nix
|
||||||
|
25
nixos/modules/services/x11/window-managers/leftwm.nix
Normal file
25
nixos/modules/services/x11/window-managers/leftwm.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user