summary refs log tree commit diff
path: root/nixos/modules/services/x11/window-managers/cwm.nix
blob: 9a143e7bccc39ab8ab60297f428cd83f8ec3c582 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ config, lib, pkgs, ... }:

with lib;

let
  cfg = config.services.xserver.windowManager.cwm;
in
{
  options = {
    services.xserver.windowManager.cwm.enable = mkEnableOption (lib.mdDoc "cwm");
  };
  config = mkIf cfg.enable {
    services.xserver.windowManager.session = singleton
      { name = "cwm";
        start =
          ''
            cwm &
            waitPID=$!
          '';
      };
    environment.systemPackages = [ pkgs.cwm ];
  };
}