2020-04-24 23:36:52 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.services.xserver.windowManager.icewm;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
###### interface
|
|
|
|
options = {
|
2024-04-21 15:54:59 +00:00
|
|
|
services.xserver.windowManager.icewm.enable = mkEnableOption "icewm";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
###### implementation
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
services.xserver.windowManager.session = singleton
|
|
|
|
{ name = "icewm";
|
|
|
|
start =
|
|
|
|
''
|
2024-02-29 20:09:43 +00:00
|
|
|
${pkgs.icewm}/bin/icewm-session &
|
2020-04-24 23:36:52 +00:00
|
|
|
waitPID=$!
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
environment.systemPackages = [ pkgs.icewm ];
|
|
|
|
};
|
|
|
|
}
|