2017-03-24 14:25:31 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
cfg = config.services.xserver.windowManager."2bwm";
|
|
|
|
|
|
|
|
in
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
###### interface
|
|
|
|
|
|
|
|
options = {
|
|
|
|
services.xserver.windowManager."2bwm".enable = mkEnableOption "2bwm";
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
###### implementation
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
|
|
|
|
services.xserver.windowManager.session = singleton
|
|
|
|
{ name = "2bwm";
|
|
|
|
start =
|
|
|
|
''
|
2018-01-15 11:10:23 +00:00
|
|
|
${pkgs._2bwm}/bin/2bwm &
|
2017-03-24 14:25:31 +00:00
|
|
|
waitPID=$!
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2018-01-15 11:10:23 +00:00
|
|
|
environment.systemPackages = [ pkgs._2bwm ];
|
2017-03-24 14:25:31 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|