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