clfswm: support custom package
Fix example Remove example
This commit is contained in:
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 ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user