2020-05-15 21:57:56 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.services.xserver.windowManager.berry;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
###### interface
|
|
|
|
options = {
|
2022-09-09 14:08:57 +00:00
|
|
|
services.xserver.windowManager.berry.enable = mkEnableOption (lib.mdDoc "berry");
|
2020-05-15 21:57:56 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
###### implementation
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
services.xserver.windowManager.session = singleton {
|
|
|
|
name = "berry";
|
|
|
|
start = ''
|
|
|
|
${pkgs.berry}/bin/berry &
|
|
|
|
waitPID=$!
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
environment.systemPackages = [ pkgs.berry ];
|
|
|
|
};
|
|
|
|
}
|