mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
hosts/ni/setups/gaming: init module
This commit is contained in:
parent
bbb198d95b
commit
2ce85e67c6
@ -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;
|
||||
|
@ -5,6 +5,7 @@
|
||||
./networking/setup.nix
|
||||
./networking/wireguard.nix
|
||||
./setups/desktop.nix
|
||||
./setups/gaming.nix
|
||||
./setups/music.nix
|
||||
];
|
||||
}
|
||||
|
28
hosts/ni/modules/setups/gaming.nix
Normal file
28
hosts/ni/modules/setups/gaming.nix
Normal 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;
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user