added custom pkgs and yuzu

This commit is contained in:
willifan 2024-11-22 09:20:12 +01:00
parent 91d1e9cc77
commit a1e1db21ec
5 changed files with 43 additions and 0 deletions

View file

@ -75,6 +75,7 @@
attrs.nixos-hardware.nixosModules.framework-12th-gen-intel attrs.nixos-hardware.nixosModules.framework-12th-gen-intel
./hosts ./hosts
./users/willifan ./users/willifan
./pkgs
]; ];
}; };
@ -105,6 +106,7 @@
attrs.nixos-hardware.nixosModules.common-cpu-amd-zenpower attrs.nixos-hardware.nixosModules.common-cpu-amd-zenpower
./hosts ./hosts
./users/willifan ./users/willifan
./pkgs
]; ];
}; };
@ -135,6 +137,7 @@
attrs.nixos-hardware.nixosModules.common-cpu-amd-zenpower attrs.nixos-hardware.nixosModules.common-cpu-amd-zenpower
./hosts ./hosts
./users/willifan ./users/willifan
./pkgs
]; ];
}; };
@ -163,6 +166,7 @@
attrs.jovian.nixosModules.default attrs.jovian.nixosModules.default
./hosts ./hosts
./users/willifan ./users/willifan
./pkgs
]; ];
}; };

6
pkgs/default.nix Normal file
View file

@ -0,0 +1,6 @@
{ pkgs, ... }:
{
nixpkgs.config.packageOverrides = pkgs: {
yuzu = pkgs.callPackage ./yuzu { };
};
}

26
pkgs/yuzu/default.nix Normal file
View file

@ -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
'';
}

View file

@ -9,6 +9,7 @@
./ROG_Pugio_II_fixes.nix ./ROG_Pugio_II_fixes.nix
./steam.nix ./steam.nix
./tetrio.nix ./tetrio.nix
./yuzu.nix
]; ];

View file

@ -0,0 +1,6 @@
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
yuzu
];
}