2014-04-14 15:26:48 +01:00
|
|
|
{ config, lib, pkgs, ... }:
|
2010-01-05 15:30:56 +00:00
|
|
|
|
2014-04-14 15:26:48 +01:00
|
|
|
with lib;
|
2010-01-05 15:30:56 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.services.xserver.windowManager.icewm;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
###### interface
|
|
|
|
options = {
|
2015-12-04 09:38:23 +00:00
|
|
|
services.xserver.windowManager.icewm.enable = mkEnableOption "icewm";
|
2010-01-05 15:30:56 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
###### 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 ];
|
2010-01-05 15:30:56 +00:00
|
|
|
};
|
|
|
|
}
|