11 cfg = config.services.xserver.desktopManager.retroarch;
15 options.services.xserver.desktopManager.retroarch = {
16 enable = mkEnableOption "RetroArch";
18 package = mkPackageOption pkgs "retroarch" {
19 example = "retroarch-full";
22 extraArgs = mkOption {
23 type = types.listOf types.str;
29 description = "Extra arguments to pass to RetroArch.";
33 config = mkIf cfg.enable {
34 services.xserver.desktopManager.session = [
38 ${cfg.package}/bin/retroarch -f ${escapeShellArgs cfg.extraArgs} &
44 environment.systemPackages = [ cfg.package ];
47 meta.maintainers = with maintainers; [ j0hax ];