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 = {
|
2015-07-26 06:08:05 +02:00
|
|
|
services.xserver.windowManager.icewm.enable = mkEnableOption "oroborus";
|
2010-01-05 16:30:56 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
###### 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 ];
|
2010-01-05 16:30:56 +01:00
|
|
|
};
|
|
|
|
}
|