2010-01-05 16:30:56 +01:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
with pkgs.lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
cfg = config.services.xserver.windowManager.icewm;
|
|
|
|
|
|
|
|
in
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
###### interface
|
|
|
|
|
|
|
|
options = {
|
2011-09-14 20:20:50 +02:00
|
|
|
|
2010-01-05 16:30:56 +01: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=$!
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
environment.x11Packages = [ pkgs.icewm ];
|
2011-09-14 20:20:50 +02:00
|
|
|
|
2010-01-05 16:30:56 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|