{ pkgs, lib, config, username, ... }: let customPkgs = pkgs // { suyu = pkgs.appimageTools.wrapType1 { name = "suyu"; version = "0.0.3"; src = pkgs.fetchurl { url = "https://git.suyu.dev/suyu/suyu/releases/download/v0.0.3/Suyu-Linux_x86_64.AppImage"; hash = "sha256-26sWhTvB6K1i/K3fmwYg5pDIUi+7xs3dz8yVj5q7H0c="; }; }; }; in { config = lib.mkIf config.games.enable { environment.systemPackages = [ # pkgs.cemu customPkgs.suyu ]; home-manager.users.${username}.xdg = { desktopEntries = { suyu = { name = "Suyu"; exec = "suyu"; icon = "suyu"; terminal = false; type = "Application"; categories = ["Game" "Emulator"]; mimeType = ["text/plain"]; }; }; }; }; }