2017-07-04 11:42:53 +01:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
xcfg = config.services.xserver;
|
|
|
|
cfg = xcfg.desktopManager.maxx;
|
|
|
|
in {
|
|
|
|
options.services.xserver.desktopManager.maxx = {
|
|
|
|
enable = mkEnableOption "MaXX desktop environment";
|
|
|
|
};
|
|
|
|
|
2019-05-13 05:12:00 +01:00
|
|
|
config = mkIf cfg.enable {
|
2017-07-04 11:42:53 +01:00
|
|
|
environment.systemPackages = [ pkgs.maxx ];
|
|
|
|
|
2019-04-14 07:51:29 +01:00
|
|
|
# there is hardcoded path in binaries
|
|
|
|
system.activationScripts.setup-maxx = ''
|
|
|
|
mkdir -p /opt
|
|
|
|
ln -sfn ${pkgs.maxx}/opt/MaXX /opt
|
|
|
|
'';
|
|
|
|
|
2017-07-04 11:42:53 +01:00
|
|
|
services.xserver.desktopManager.session = [
|
|
|
|
{ name = "MaXX";
|
|
|
|
start = ''
|
|
|
|
exec ${pkgs.maxx}/opt/MaXX/etc/skel/Xsession.dt
|
|
|
|
'';
|
|
|
|
}];
|
|
|
|
};
|
|
|
|
|
|
|
|
meta.maintainers = [ maintainers.gnidorah ];
|
|
|
|
}
|