2020-04-24 23:36:52 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.services.xserver.windowManager.stumpwm;
|
|
|
|
in
|
|
|
|
|
|
|
|
{
|
|
|
|
options = {
|
2022-09-09 14:08:57 +00:00
|
|
|
services.xserver.windowManager.stumpwm.enable = mkEnableOption (lib.mdDoc "stumpwm");
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
services.xserver.windowManager.session = singleton {
|
|
|
|
name = "stumpwm";
|
|
|
|
start = ''
|
2023-04-12 12:48:02 +00:00
|
|
|
${pkgs.sbclPackages.stumpwm}/bin/stumpwm &
|
2020-04-24 23:36:52 +00:00
|
|
|
waitPID=$!
|
|
|
|
'';
|
|
|
|
};
|
2023-04-12 12:48:02 +00:00
|
|
|
environment.systemPackages = [ pkgs.sbclPackages.stumpwm ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|