From a1e1db21ecd60cdf76b202c31531fb86ddd45328 Mon Sep 17 00:00:00 2001 From: willifan Date: Fri, 22 Nov 2024 09:20:12 +0100 Subject: [PATCH] added custom pkgs and yuzu --- flake.nix | 4 ++++ pkgs/default.nix | 6 ++++++ pkgs/yuzu/default.nix | 26 ++++++++++++++++++++++++ users/willifan/desktop/games/default.nix | 1 + users/willifan/desktop/games/yuzu.nix | 6 ++++++ 5 files changed, 43 insertions(+) create mode 100644 pkgs/default.nix create mode 100644 pkgs/yuzu/default.nix create mode 100644 users/willifan/desktop/games/yuzu.nix diff --git a/flake.nix b/flake.nix index 60572d9..224ac9b 100644 --- a/flake.nix +++ b/flake.nix @@ -75,6 +75,7 @@ attrs.nixos-hardware.nixosModules.framework-12th-gen-intel ./hosts ./users/willifan + ./pkgs ]; }; @@ -105,6 +106,7 @@ attrs.nixos-hardware.nixosModules.common-cpu-amd-zenpower ./hosts ./users/willifan + ./pkgs ]; }; @@ -135,6 +137,7 @@ attrs.nixos-hardware.nixosModules.common-cpu-amd-zenpower ./hosts ./users/willifan + ./pkgs ]; }; @@ -163,6 +166,7 @@ attrs.jovian.nixosModules.default ./hosts ./users/willifan + ./pkgs ]; }; diff --git a/pkgs/default.nix b/pkgs/default.nix new file mode 100644 index 0000000..ab112be --- /dev/null +++ b/pkgs/default.nix @@ -0,0 +1,6 @@ +{ pkgs, ... }: +{ + nixpkgs.config.packageOverrides = pkgs: { + yuzu = pkgs.callPackage ./yuzu { }; + }; +} diff --git a/pkgs/yuzu/default.nix b/pkgs/yuzu/default.nix new file mode 100644 index 0000000..c2bd86b --- /dev/null +++ b/pkgs/yuzu/default.nix @@ -0,0 +1,26 @@ +{ + appimageTools, + fetchurl, +}: +let + pname = "yuzu"; + version = "4176"; + src = fetchurl { + url = "https://files.huwe.mooo.com/yuzu.AppImage"; + hash = "sha256-bUTVL8br2POy5HB1FszlNQNChdRWcwIlG6/RCceXIlg="; + }; + + appimageContents = appimageTools.extract { + inherit pname version src; + }; + +in +appimageTools.wrapType2 { + inherit pname version src; + extraInstallCommands = '' + install -m 444 -D ${appimageContents}/org.yuzu_emu.yuzu.desktop $out/share/applications/irccloud.desktop + install -m 444 -D ${appimageContents}/usr/share/icons/hicolor/scalable/apps/org.yuzu_emu.yuzu.svg \ + $out/share/icons/hicolor/scalable/apps/org.yuzu_emu.yuzu.svg + ''; +} + diff --git a/users/willifan/desktop/games/default.nix b/users/willifan/desktop/games/default.nix index bc711b5..617e333 100644 --- a/users/willifan/desktop/games/default.nix +++ b/users/willifan/desktop/games/default.nix @@ -9,6 +9,7 @@ ./ROG_Pugio_II_fixes.nix ./steam.nix ./tetrio.nix + ./yuzu.nix ]; diff --git a/users/willifan/desktop/games/yuzu.nix b/users/willifan/desktop/games/yuzu.nix new file mode 100644 index 0000000..0fe4acd --- /dev/null +++ b/users/willifan/desktop/games/yuzu.nix @@ -0,0 +1,6 @@ +{ pkgs, ... }: +{ + environment.systemPackages = with pkgs; [ + yuzu + ]; +}