split up gaming modules and add 2d emulators with retroarch

This commit is contained in:
Tyler Starr 2024-03-10 10:50:58 -07:00
parent 88427286e7
commit 71e99b459d
6 changed files with 45 additions and 12 deletions

View File

@ -86,6 +86,8 @@
};
gaming = {
steam.enable = true;
emulation.enable = true;
misc.enable = true;
};
services = {
jellyfin.enable = false;

View File

@ -91,6 +91,8 @@
};
gaming = {
steam.enable = true;
emulation.enable = true;
misc.enable = true;
};
services = {
jellyfin.enable = false;

View File

@ -1,4 +1,4 @@
{ ... }:
{
imports = [ ./steam.nix ];
imports = [ ./steam.nix ./misc.nix ./emulation.nix ];
}

View File

@ -0,0 +1,25 @@
{ config, lib, pkgs, user, ... }:
let cfg = config.modules.gaming.emulation;
in {
options.modules.gaming.emulation.enable = lib.mkEnableOption "emulation";
config = lib.mkIf cfg.enable {
environment.systemPackages = with pkgs; [
yuzu-archive
citra-archive
dolphin-emu
ppsspp
mgba
ares
(retroarch.override {
cores = with libretro; [
nestopia
snes9x
mgba
melonds
];
})
];
};
}

View File

@ -0,0 +1,15 @@
{ config, lib, pkgs, user, ... }:
let cfg = config.modules.gaming.misc;
in {
options.modules.gaming.misc.enable = lib.mkEnableOption "misc";
config = lib.mkIf cfg.enable {
environment.systemPackages = with pkgs; [
sunshine
moonlight-qt
prismlauncher
jdk17
];
};
}

View File

@ -18,17 +18,6 @@ in {
steam
steamtinkerlaunch
gamescope
yuzu-archive
citra-archive
dolphin-emu
ppsspp
mgba
ares
sunshine
moonlight-qt
prismlauncher
jdk17
];
};
}