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