2024-10-13 13:54:32 +02:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
config,
|
2024-11-08 18:23:40 +01:00
|
|
|
username,
|
2024-10-13 13:54:32 +02:00
|
|
|
...
|
2024-11-08 13:50:09 +01:00
|
|
|
}: 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 {
|
2024-11-24 20:15:38 +01:00
|
|
|
options = {
|
|
|
|
emulator.enable = lib.mkEnableOption "";
|
|
|
|
};
|
|
|
|
config = lib.mkIf config.emulator.enable {
|
2024-11-11 18:49:02 +01:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
cemu
|
2024-11-08 13:50:09 +01:00
|
|
|
customPkgs.suyu
|
2024-10-13 13:54:32 +02:00
|
|
|
];
|
2024-11-08 13:50:09 +01:00
|
|
|
|
2024-11-08 18:23:40 +01:00
|
|
|
home-manager.users.${username}.xdg = {
|
2024-11-08 13:50:09 +01:00
|
|
|
desktopEntries = {
|
|
|
|
suyu = {
|
|
|
|
name = "Suyu";
|
|
|
|
exec = "suyu";
|
|
|
|
icon = "suyu";
|
|
|
|
terminal = false;
|
|
|
|
type = "Application";
|
|
|
|
categories = ["Game" "Emulator"];
|
|
|
|
mimeType = ["text/plain"];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-10-13 13:54:32 +02:00
|
|
|
};
|
2024-10-11 01:29:53 +02:00
|
|
|
}
|