2014-04-14 16:26:48 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
2010-01-05 16:30:56 +01:00
|
|
|
|
2014-04-14 16:26:48 +02:00
|
|
|
with lib;
|
2010-01-05 16:30:56 +01:00
|
|
|
|
|
|
|
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=$!
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2013-10-30 17:52:35 +01:00
|
|
|
environment.systemPackages = [ pkgs.icewm ];
|
2011-09-14 20:20:50 +02:00
|
|
|
|
2010-01-05 16:30:56 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|