aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/nixos/modules/services/x11/window-managers/windowlab.nix
blob: fb891a39fa412449789f756c82e81c17e698438f (plain)
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 "windowlab";
  };

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