mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-05-18 18:36:05 -07:00
split up gaming modules and add 2d emulators with retroarch
This commit is contained in:
parent
88427286e7
commit
71e99b459d
@ -86,6 +86,8 @@
|
|||||||
};
|
};
|
||||||
gaming = {
|
gaming = {
|
||||||
steam.enable = true;
|
steam.enable = true;
|
||||||
|
emulation.enable = true;
|
||||||
|
misc.enable = true;
|
||||||
};
|
};
|
||||||
services = {
|
services = {
|
||||||
jellyfin.enable = false;
|
jellyfin.enable = false;
|
||||||
|
@ -91,6 +91,8 @@
|
|||||||
};
|
};
|
||||||
gaming = {
|
gaming = {
|
||||||
steam.enable = true;
|
steam.enable = true;
|
||||||
|
emulation.enable = true;
|
||||||
|
misc.enable = true;
|
||||||
};
|
};
|
||||||
services = {
|
services = {
|
||||||
jellyfin.enable = false;
|
jellyfin.enable = false;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
imports = [ ./steam.nix ];
|
imports = [ ./steam.nix ./misc.nix ./emulation.nix ];
|
||||||
}
|
}
|
||||||
|
25
provision/modules/gaming/emulation.nix
Normal file
25
provision/modules/gaming/emulation.nix
Normal 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
|
||||||
|
];
|
||||||
|
})
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
15
provision/modules/gaming/misc.nix
Normal file
15
provision/modules/gaming/misc.nix
Normal 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
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
@ -18,17 +18,6 @@ in {
|
|||||||
steam
|
steam
|
||||||
steamtinkerlaunch
|
steamtinkerlaunch
|
||||||
gamescope
|
gamescope
|
||||||
yuzu-archive
|
|
||||||
citra-archive
|
|
||||||
dolphin-emu
|
|
||||||
ppsspp
|
|
||||||
mgba
|
|
||||||
ares
|
|
||||||
sunshine
|
|
||||||
moonlight-qt
|
|
||||||
prismlauncher
|
|
||||||
jdk17
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user