From a63782625b72c50c542171c2e0f4dc14267c0f6f Mon Sep 17 00:00:00 2001 From: Gabriel Arazas <foodogsquared@foodogsquared.one> Date: Tue, 19 Nov 2024 20:36:13 +0800 Subject: [PATCH] nixos/suites/gaming: use Retroarch module and reduce the cores In preparation for additional hosts that will be used exclusively as a home media entertainment system which will have limited capabilities in the first place. --- modules/nixos/_private/suites/gaming.nix | 25 +++++++++++------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/modules/nixos/_private/suites/gaming.nix b/modules/nixos/_private/suites/gaming.nix index c601db65..f2a3f8c0 100644 --- a/modules/nixos/_private/suites/gaming.nix +++ b/modules/nixos/_private/suites/gaming.nix @@ -15,20 +15,17 @@ in # Just don't ask where you can sail getting the games. :) config = lib.mkIf cfg.enable (lib.mkMerge [ { - environment.systemPackages = with pkgs; [ - # All-around emulator. Also what I'm mainly using for quickly - # initializing sessions. - (retroarch.override { - cores = with libretro; [ - bsnes-hd - desmume - dolphin - dosbox-pure - pcsx2 - ppsspp - ]; - }) - ]; + # All-around emulator. Also what I'm mainly using for quickly + # initializing sessions. + programs.retroarch = { + enable = true; + cores = with pkgs.libretro; [ + bsnes-hd + desmume + dosbox-pure + ppsspp + ]; + }; # Setup the go-to platform for Linux gaming. Most of the # games should work now with Proton integration.