clean up gaming modules folder

This commit is contained in:
Tyler Starr 2024-10-24 22:37:50 -07:00
parent c4ee6b973f
commit bb4e95401a
4 changed files with 17 additions and 17 deletions

View File

@ -1,4 +1,8 @@
{ ... }:
{
imports = [ ./emulation.nix ./minecraft.nix ./steam.nix ];
imports = [
./emulation.nix
./minecraft.nix
./steam.nix
];
}

View File

@ -4,8 +4,6 @@ let cfg = config.modules.gaming.emulation;
in {
options.modules.gaming.emulation.enable = lib.mkEnableOption "emulation";
config = lib.mkIf cfg.enable {
environment.systemPackages = with pkgs; [
ryujinx # Fuck Nintendo!
sudachi # Nintendo Switch emulator written in C++.
@ -24,6 +22,7 @@ in {
})
];
# Provide dumped keys for switch emulation
age.secrets."emu/switch/prod.keys" = {
file = ../../secrets/emu/switch/prod.keys.age;
owner = "${user}";

View File

@ -5,8 +5,8 @@ in {
options.modules.gaming.minecraft.enable = lib.mkEnableOption "minecraft";
config = lib.mkIf cfg.enable {
environment.systemPackages = with pkgs; [
prismlauncher # Launcher for Prism, a web application framework.
jdk17 # Java Development Kit (JDK) version 17.
prismlauncher # Launcher for Prism, a web application framework.
];
};
}

View File

@ -4,22 +4,19 @@ let cfg = config.modules.gaming.steam;
in {
options.modules.gaming.steam.enable = lib.mkEnableOption "steam";
config = lib.mkIf cfg.enable {
hardware.graphics.enable = true; # this fixes the "glXChooseVisual failed" bug, context: https://github.com/NixOS/nixpkgs/issues/47932
# optionally enable 32bit pulseaudio support if pulseaudio is enabled
hardware.pulseaudio.support32Bit = config.hardware.pulseaudio.enable;
hardware.steam-hardware.enable = true;
# Digital distribution platform for purchasing and playing video games.
programs.steam = {
enable = true;
# Workaround from: https://github.com/NixOS/nixpkgs/issues/236561
package = with pkgs; steam.override { extraPkgs = pkgs: [ attr ]; };
};
environment.systemPackages = with pkgs; [
steamtinkerlaunch # Launcher and optimization tool for Steam games.
gamescope # Utility for running games using Valve's Steam Play compatibility layer with improved performance and compatibility.
mangohud
mangohud # Vulkan and OpenGL overlay for monitoring FPS, temperatures, CPU/GPU load and more.
];
hardware.graphics.enable = true; # this fixes the "glXChooseVisual failed" bug, context: https://github.com/NixOS/nixpkgs/issues/47932
hardware.pulseaudio.support32Bit = config.hardware.pulseaudio.enable; # Enable 32bit pulseaudio support if pulseaudio is enabled
hardware.steam-hardware.enable = true;
programs.steam = {
enable = true;
package = with pkgs; steam.override { extraPkgs = pkgs: [ attr ]; }; # Workaround from: https://github.com/NixOS/nixpkgs/issues/236561
};
};
}