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

let
  cfg = config.services.xserver.windowManager.windowlab;
in

{
  options = {
    services.xserver.windowManager.windowlab.enable =
      lib.mkEnableOption (lib.mdDoc "windowlab");
  };

  config = lib.mkIf cfg.enable {
    services.xserver.windowManager = {
      session =
        [{ name  = "windowlab";
           start = "${pkgs.windowlab}/bin/windowlab";
        }];
    };
    environment.systemPackages = [ pkgs.windowlab ];
  };
}