2014-09-21 19:58:53 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.services.xserver.windowManager.ratpoison;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
###### interface
|
|
|
|
options = {
|
2015-12-04 10:38:23 +01:00
|
|
|
services.xserver.windowManager.ratpoison.enable = mkEnableOption "ratpoison";
|
2014-09-21 19:58:53 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
###### implementation
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
services.xserver.windowManager.session = singleton {
|
|
|
|
name = "ratpoison";
|
|
|
|
start = ''
|
|
|
|
${pkgs.ratpoison}/bin/ratpoison &
|
|
|
|
waitPID=$!
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
environment.systemPackages = [ pkgs.ratpoison ];
|
|
|
|
};
|
|
|
|
}
|