nixos/cwm: init

Added windowManager cwm, basing on the module for dwm.
This commit is contained in:
Michał Krzysztof Feiler 2019-09-29 23:26:08 +02:00
parent f8363c2721
commit d9a7c51016
No known key found for this signature in database
GPG key ID: E35C2D7C2C6AC724

View file

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