mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
23 lines
459 B
Nix
23 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 ];
|
||
|
};
|
||
|
}
|