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 = [ imports = [
./suyu
./norisk ./norisk
./steam ./steam
./emulator ./emulator

View file

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