2020-04-24 23:36:52 +00:00
|
|
|
{lib, pkgs, config, ...}:
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.services.xserver.windowManager.windowlab;
|
|
|
|
in
|
|
|
|
|
|
|
|
{
|
|
|
|
options = {
|
|
|
|
services.xserver.windowManager.windowlab.enable =
|
2022-09-09 14:08:57 +00:00
|
|
|
lib.mkEnableOption (lib.mdDoc "windowlab");
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
services.xserver.windowManager = {
|
|
|
|
session =
|
|
|
|
[{ name = "windowlab";
|
|
|
|
start = "${pkgs.windowlab}/bin/windowlab";
|
|
|
|
}];
|
|
|
|
};
|
|
|
|
environment.systemPackages = [ pkgs.windowlab ];
|
|
|
|
};
|
|
|
|
}
|