8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
31 lines
680 B
Nix
31 lines
680 B
Nix
{ 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";
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
environment.systemPackages = [ pkgs.maxx ];
|
|
|
|
# there is hardcoded path in binaries
|
|
system.activationScripts.setup-maxx = ''
|
|
mkdir -p /opt
|
|
ln -sfn ${pkgs.maxx}/opt/MaXX /opt
|
|
'';
|
|
|
|
services.xserver.desktopManager.session = [
|
|
{ name = "MaXX";
|
|
start = ''
|
|
exec ${pkgs.maxx}/opt/MaXX/etc/skel/Xsession.dt
|
|
'';
|
|
}];
|
|
};
|
|
|
|
meta.maintainers = [ maintainers.gnidorah ];
|
|
}
|