hosts/ni/setups/gaming: init module

This commit is contained in:
Gabriel Arazas 2023-12-13 10:46:46 +08:00
parent bbb198d95b
commit 2ce85e67c6
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC
3 changed files with 30 additions and 5 deletions

View File

@ -32,6 +32,7 @@
networking.wireguard.enable = true;
setups.desktop.enable = true;
setups.music.enable = true;
setups.gaming.enable = true;
};
disko.devices = import ./disko.nix {
@ -72,11 +73,6 @@
virtualization.enable = true;
neovim.enable = true;
};
gaming = {
enable = true;
emulators.enable = true;
retro-computing.enable = true;
};
filesystem = {
tools.enable = true;
setups.personal-webstorage.enable = true;

View File

@ -5,6 +5,7 @@
./networking/setup.nix
./networking/wireguard.nix
./setups/desktop.nix
./setups/gaming.nix
./setups/music.nix
];
}

View File

@ -0,0 +1,28 @@
{ config, lib, pkgs, ... }:
let
hostCfg = config.hosts.ni;
cfg = hostCfg.setups.gaming;
in
{
options.hosts.ni.setups.gaming.enable = lib.mkEnableOption "gaming setup";
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;
};
}