mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-11-11 18:23:18 +01:00
Moved outside lisp-modules to a separate package, so as to re-use its Makefile-based build-system and make a step in the direction of leaving just development libraries in lisp-modules.
31 lines
557 B
Nix
31 lines
557 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.services.xserver.windowManager.stumpwm;
|
|
in
|
|
|
|
{
|
|
options = {
|
|
services.xserver.windowManager.stumpwm.enable = mkEnableOption "stumpwm";
|
|
services.xserver.windowManager.stumpwm.package = mkPackageOption pkgs "stumpwm" { };
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
services.xserver.windowManager.session = singleton {
|
|
name = "stumpwm";
|
|
start = ''
|
|
${cfg.package}/bin/stumpwm &
|
|
waitPID=$!
|
|
'';
|
|
};
|
|
environment.systemPackages = [ cfg.package ];
|
|
};
|
|
}
|