nix/modules/games/suyu/default.nix

44 lines
897 B
Nix
Raw Normal View History

2024-10-08 14:47:39 +02:00
{
pkgs,
lib,
config,
...
}: let
2024-09-18 19:27:14 +02:00
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-10-08 14:47:39 +02:00
options = {
suyu.enable = lib.mkEnableOption "";
};
config = lib.mkIf config.suyu.enable {
environment.systemPackages = [
customPkgs.suyu
];
2024-09-18 19:27:14 +02:00
2024-10-08 14:47:39 +02:00
home-manager.users.joy.xdg = {
desktopEntries = {
suyu = {
name = "Suyu";
exec = "suyu";
icon = "suyu";
terminal = false;
type = "Application";
categories = ["Game" "Emulator"];
mimeType = ["text/plain"];
};
2024-09-18 19:27:14 +02:00
};
};
};
}