nixos-config/hosts/ni/modules/setups/gaming.nix

30 lines
608 B
Nix
Raw Normal View History

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.
profiles.gaming = {
enable = true;
emulators.enable = true;
retro-computing.enable = true;
};
environment.systemPackages = with pkgs; [
dwarf-fortress
mindustry
minetest
the-powder-toy
];
# This is somewhat used for streaming games from it.
programs.steam.remotePlay.openFirewall = true;
};
}