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