0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-14 06:00:33 +03:00

lwm: init at 1.2.4

lwm is a lightweight window manager
This commit is contained in:
AndersonTorres 2020-05-13 01:26:41 -03:00
parent 43ce2a5219
commit 1c2c0b2eb8
4 changed files with 73 additions and 0 deletions

View file

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

View file

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