2010-01-05 15:30:56 +00:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
with pkgs.lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
cfg = config.services.xserver.windowManager.icewm;
|
|
|
|
|
|
|
|
in
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
###### interface
|
|
|
|
|
|
|
|
options = {
|
2011-09-14 19:20:50 +01:00
|
|
|
|
2010-01-05 15:30:56 +00:00
|
|
|
services.xserver.windowManager.icewm.enable = mkOption {
|
|
|
|
default = false;
|
|
|
|
description = "Enable the IceWM window manager.";
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
###### implementation
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
|
|
|
|
services.xserver.windowManager.session = singleton
|
|
|
|
{ name = "icewm";
|
|
|
|
start =
|
|
|
|
''
|
|
|
|
${pkgs.icewm}/bin/icewm &
|
|
|
|
waitPID=$!
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2013-10-30 16:52:35 +00:00
|
|
|
environment.systemPackages = [ pkgs.icewm ];
|
2011-09-14 19:20:50 +01:00
|
|
|
|
2010-01-05 15:30:56 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|