38 lines
528 B
Nix
38 lines
528 B
Nix
{ 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 =
|
|
''
|
|
${pkgs."2bwm"}/bin/2bwm &
|
|
waitPID=$!
|
|
'';
|
|
};
|
|
|
|
environment.systemPackages = [ pkgs."2bwm" ];
|
|
|
|
};
|
|
|
|
}
|