2023-12-13 02:46:46 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
hostCfg = config.hosts.ni;
|
|
|
|
cfg = hostCfg.setups.gaming;
|
|
|
|
in
|
|
|
|
{
|
2023-12-15 05:27:12 +00:00
|
|
|
options.hosts.ni.setups.gaming.enable =
|
|
|
|
lib.mkEnableOption "gaming setup";
|
2023-12-13 02:46:46 +00:00
|
|
|
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
# Bring all of the goodies.
|
2024-01-22 06:48:55 +00:00
|
|
|
suites.gaming = {
|
2023-12-13 02:46:46 +00:00
|
|
|
enable = true;
|
|
|
|
emulators.enable = true;
|
|
|
|
retro-computing.enable = true;
|
|
|
|
};
|
|
|
|
|
2024-11-19 12:36:46 +00:00
|
|
|
programs.retroarch.cores = with pkgs.libretro; [
|
|
|
|
pcsx2
|
|
|
|
dolphin
|
|
|
|
citra
|
2024-12-09 11:21:53 +00:00
|
|
|
mame
|
2024-11-19 12:36:46 +00:00
|
|
|
];
|
|
|
|
|
2023-12-18 10:44:27 +00:00
|
|
|
# Bring more of them games.
|
2023-12-13 02:46:46 +00:00
|
|
|
environment.systemPackages = with pkgs; [
|
2024-12-09 11:21:53 +00:00
|
|
|
rpcs3
|
|
|
|
|
2023-12-18 10:44:27 +00:00
|
|
|
dwarf-fortress # Losing only means more possibilities to play.
|
|
|
|
mindustry # Not a Minecraft industry simulator.
|
|
|
|
minetest # Free Minecraft.
|
|
|
|
the-powder-toy # Free micro-Minecraft.
|
2025-01-12 06:22:37 +00:00
|
|
|
rotp-foodogsquared # Free space Minecraft planet colonization simulator.
|
2023-12-13 02:46:46 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# This is somewhat used for streaming games from it.
|
|
|
|
programs.steam.remotePlay.openFirewall = true;
|
2023-12-22 00:57:41 +00:00
|
|
|
|
|
|
|
# Yes... Play your Brawl Stars and Clash Royale in NixOS. :)
|
|
|
|
virtualisation.waydroid.enable = true;
|
2023-12-13 02:46:46 +00:00
|
|
|
};
|
|
|
|
}
|