clfswm: support custom package

Fix example

Remove example
This commit is contained in:
p3psi 2021-08-22 03:54:23 +08:00 committed by p3psi
parent ecd21f06bd
commit 9e507a9314

@ -8,17 +8,27 @@ in
{
options = {
services.xserver.windowManager.clfswm.enable = mkEnableOption "clfswm";
services.xserver.windowManager.clfswm = {
enable = mkEnableOption "clfswm";
package = mkOption {
type = types.package;
default = pkgs.lispPackages.clfswm;
defaultText = "pkgs.lispPackages.clfswm";
description = ''
clfswm package to use.
'';
};
};
};
config = mkIf cfg.enable {
services.xserver.windowManager.session = singleton {
name = "clfswm";
start = ''
${pkgs.lispPackages.clfswm}/bin/clfswm &
${cfg.package}/bin/clfswm &
waitPID=$!
'';
};
environment.systemPackages = [ pkgs.lispPackages.clfswm ];
environment.systemPackages = [ cfg.package ];
};
}