norisk update

This commit is contained in:
joy 2024-11-08 13:50:09 +01:00
parent 3493f08b77
commit 7339260277
4 changed files with 39 additions and 51 deletions

View file

@ -1,6 +1,5 @@
{
imports = [
./suyu
./norisk
./steam
./emulator

View file

@ -3,10 +3,39 @@
lib,
config,
...
}: {
}: 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 = with pkgs; [
cemu
environment.systemPackages = [
# pkgs.cemu
customPkgs.suyu
];
home-manager.users.joy.xdg = {
desktopEntries = {
suyu = {
name = "Suyu";
exec = "suyu";
icon = "suyu";
terminal = false;
type = "Application";
categories = ["Game" "Emulator"];
mimeType = ["text/plain"];
};
};
};
};
}

View file

@ -9,16 +9,16 @@
// {
noriskclient = pkgs.appimageTools.wrapType1 {
name = "noriskclient";
version = "0.5.10";
version = "0.5.11";
src = pkgs.fetchurl {
url = "https://github.com/NoRiskClient/noriskclient-launcher/releases/download/v0.5.10/NoRiskClient-Linux.AppImage";
hash = "sha256-y5kXP3kEW0UsV04JBeJCvSOuJf3/zo5s7ZigOpxbwkk=";
url = "https://github.com/NoRiskClient/noriskclient-launcher/releases/download/v0.5.11/NoRiskClient-Linux.AppImage";
hash = "sha256-Y0TSMQkJhpEgOgPbJwEK3vW85qYnnj69bRp5V7lhd/Q=";
};
};
};
logourl = "https://raw.githubusercontent.com/NoRiskClient/noriskclient-launcher/refs/heads/main/src/images/norisk_logo.png";
logsha256 = "sha256-VwWwShUrT055mcabS8QTqqb8INgRB/08U2qEEIVYHlg=";
iconurl = "https://raw.githubusercontent.com/NoRiskClient/noriskclient-launcher/refs/heads/main/src/images/norisk_logo.png";
iconsha256 = "sha256-VwWwShUrT055mcabS8QTqqb8INgRB/08U2qEEIVYHlg=";
in {
config = lib.mkIf config.games.enable {
environment.systemPackages = [
@ -31,8 +31,8 @@ in {
name = "NoRisk Client";
exec = "noriskclient";
icon = pkgs.fetchurl {
url = logourl;
sha256 = logsha256;
url = iconurl;
sha256 = iconsha256;
};
terminal = false;
type = "Application";

View file

@ -1,40 +0,0 @@
{
pkgs,
lib,
config,
...
}: 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 = [
customPkgs.suyu
];
home-manager.users.joy.xdg = {
desktopEntries = {
suyu = {
name = "Suyu";
exec = "suyu";
icon = "suyu";
terminal = false;
type = "Application";
categories = ["Game" "Emulator"];
mimeType = ["text/plain"];
};
};
};
};
}