nixpkgs/nixos/modules/services/x11/window-managers/2bwm.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
538 B
Nix
Raw Normal View History

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 (lib.mdDoc "2bwm");
2017-03-24 14:25:31 +00:00
};
###### implementation
config = mkIf cfg.enable {
services.xserver.windowManager.session = singleton
{ name = "2bwm";
start =
''
${pkgs._2bwm}/bin/2bwm &
2017-03-24 14:25:31 +00:00
waitPID=$!
'';
};
environment.systemPackages = [ pkgs._2bwm ];
2017-03-24 14:25:31 +00:00
};
}