[Gaming] use bleeding-edge yuzu and add bleeding edge ryujinx

Optimize both with optimizePkg
This commit is contained in:
Antoine Viallon 2023-05-18 00:32:11 +02:00
parent 1bbd7cc5b8
commit 3203fe1298
Signed by: aviallon
GPG key ID: 186FC35EDEB25716

View file

@ -1,8 +1,9 @@
{ config, pkgs, lib, ... }: { config, pkgs, lib, myLib, ... }:
with lib; with lib;
let let
cfg = config.aviallon.desktop; cfg = config.aviallon.desktop;
generalCfg = config.aviallon.general; generalCfg = config.aviallon.general;
optimizePkg = config.aviallon.optimizations.optimizePkg;
mkTmpDir = dirpath: cleanup: "D ${dirpath} 777 root root ${cleanup}"; mkTmpDir = dirpath: cleanup: "D ${dirpath} 777 root root ${cleanup}";
in { in {
@ -14,7 +15,13 @@ in {
description = "Yuzu switch emulator package"; description = "Yuzu switch emulator package";
type = with types; package; type = with types; package;
example = pkgs.yuzu-early-access; example = pkgs.yuzu-early-access;
default = pkgs.yuzu-mainline; default = pkgs.unstable.yuzu-early-access;
};
ryujinx.package = mkOption {
description = "Ryujinx Switch emulator package";
type = myLib.types.package';
default = pkgs.unstable.ryujinx;
example = literalExample "pkgs.unstable.ryujinx";
}; };
}; };
}; };
@ -30,7 +37,8 @@ in {
mangohud mangohud
lutris lutris
] ++ optionals cfg.gaming.emulation [ ] ++ optionals cfg.gaming.emulation [
cfg.gaming.yuzu.package (optimizePkg { recursive = 0; } cfg.gaming.yuzu.package)
(optimizePkg { } cfg.gaming.ryujinx.package)
]; ];
boot.kernel.sysctl = { boot.kernel.sysctl = {