[Desktop/Gaming] Add emulation, and start by adding Yuzu

This commit is contained in:
Antoine Viallon 2023-03-15 09:32:06 +01:00
parent 03f285849e
commit 69c5fdb954
Signed by: aviallon
GPG key ID: 186FC35EDEB25716

View file

@ -9,6 +9,13 @@ in {
options = { options = {
aviallon.desktop.gaming = { aviallon.desktop.gaming = {
enable = mkEnableOption "gaming features"; enable = mkEnableOption "gaming features";
emulation = mkEnableOption "console emulators";
yuzu.package = mkOption {
description = "Yuzu switch emulator package";
type = with types; package;
example = pkgs.yuzu-early-access;
default = pkgs.yuzu-mainline;
};
}; };
}; };
@ -22,6 +29,8 @@ in {
#gamescope #gamescope
mangohud mangohud
lutris lutris
] ++ optionals cfg.gaming.emulation [
cfg.gaming.yuzu.package
]; ];
boot.kernel.sysctl = { boot.kernel.sysctl = {