2020-04-24 23:36:52 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.services.xserver.windowManager.clfswm;
|
|
|
|
in
|
|
|
|
|
|
|
|
{
|
|
|
|
options = {
|
2021-09-18 10:52:07 +00:00
|
|
|
services.xserver.windowManager.clfswm = {
|
2024-04-21 15:54:59 +00:00
|
|
|
enable = mkEnableOption "clfswm";
|
2024-01-02 11:29:13 +00:00
|
|
|
package = mkPackageOption pkgs [ "lispPackages" "clfswm" ] { };
|
2021-09-18 10:52:07 +00:00
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
services.xserver.windowManager.session = singleton {
|
|
|
|
name = "clfswm";
|
|
|
|
start = ''
|
2021-09-18 10:52:07 +00:00
|
|
|
${cfg.package}/bin/clfswm &
|
2020-04-24 23:36:52 +00:00
|
|
|
waitPID=$!
|
|
|
|
'';
|
|
|
|
};
|
2021-09-18 10:52:07 +00:00
|
|
|
environment.systemPackages = [ cfg.package ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|