2014-10-05 13:50:08 +01:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.services.xserver.windowManager.stumpwm;
|
|
|
|
in
|
|
|
|
|
|
|
|
{
|
|
|
|
options = {
|
2015-12-04 09:38:23 +00:00
|
|
|
services.xserver.windowManager.stumpwm.enable = mkEnableOption "stumpwm";
|
2014-10-05 13:50:08 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
services.xserver.windowManager.session = singleton {
|
|
|
|
name = "stumpwm";
|
2015-06-24 12:58:37 +01:00
|
|
|
start = ''
|
2018-05-14 17:37:53 +01:00
|
|
|
${pkgs.lispPackages.stumpwm}/bin/stumpwm &
|
2015-06-24 12:58:37 +01:00
|
|
|
waitPID=$!
|
|
|
|
'';
|
2014-10-05 13:50:08 +01:00
|
|
|
};
|
2018-05-14 17:37:53 +01:00
|
|
|
environment.systemPackages = [ pkgs.lispPackages.stumpwm ];
|
2014-10-05 13:50:08 +01:00
|
|
|
};
|
|
|
|
}
|