Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
22 lines
459 B
Nix
22 lines
459 B
Nix
{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 ];
|
|
};
|
|
}
|