nix-configs

Personal NixOS and home-manager configuration files
Log | Files | Refs

commit e698261fc0316baeb97282eaa838bbbcf9bc3983
parent 72d86670321f32f21e85deb42646549f5570d5b6
Author: breadcat <breadcat@users.noreply.github.com>
Date:   Thu, 21 May 2026 16:08:10 +0100

Replace retroarch common with HM module

Diffstat:
Dcommon/emulators.nix | 38--------------------------------------
Ahome/retroarch.nix | 14++++++++++++++
Mmachines/arcadia.nix | 2+-
3 files changed, 15 insertions(+), 39 deletions(-)

diff --git a/common/emulators.nix b/common/emulators.nix @@ -1,38 +0,0 @@ -{ lib, pkgs, ... }: - -let - retroarchWithCores = ( - pkgs.retroarch.withCores ( - cores: with cores; [ - beetle-saturn - # cemu - dolphin - flycast - genesis-plus-gx - # gopher64 - melonds - mesen - mgba - parallel-n64 - pcsx2 - ppsspp - # rpcs3 - sameboy - snes9x - swanstation - # xemu - # Game engines: corsix-th, eduke32, openra, openrct2, openttd - # Frontends: pegasus-frontend - # Tools: mame-tools, moonlight-qt - ] - ) - ); -in -{ - environment.systemPackages = [ retroarchWithCores ]; - - nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ - "libretro-genesis-plus-gx" - "libretro-snes9x" - ]; -} diff --git a/home/retroarch.nix b/home/retroarch.nix @@ -0,0 +1,14 @@ +{ pkgs, ... }: + +{ + programs.retroarch = { + enable = true; + cores = { + mesen = {enable = true;}; + parallel-n64 = {enable = true;}; + snes9x = {enable = true;}; + swanstation = {enable = true;}; + }; + # settings = { }; + }; +} diff --git a/machines/arcadia.nix b/machines/arcadia.nix @@ -10,7 +10,6 @@ let machine = "arcadia"; in { ../common/audio.nix ../common/autologin.nix ../common/boot-systemd.nix - ../common/emulators.nix ../common/flakes.nix ../common/fonts.nix ../common/garbage.nix @@ -32,6 +31,7 @@ let machine = "arcadia"; in { ../home/hyprland.nix ../home/kodi.nix ../home/rclone.nix + ../home/retroarch.nix ../home/ssh.nix ../home/yt-dlp.nix ];