mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-06 01:38:06 +00:00
[Gaming] use bleeding-edge yuzu and add bleeding edge ryujinx
Optimize both with optimizePkg
This commit is contained in:
parent
1bbd7cc5b8
commit
3203fe1298
1 changed files with 11 additions and 3 deletions
|
|
@ -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 = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue