mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-02-19 19:27:31 -08:00
clean up gaming modules folder
This commit is contained in:
parent
c4ee6b973f
commit
bb4e95401a
@ -1,4 +1,8 @@
|
|||||||
{ ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
imports = [ ./emulation.nix ./minecraft.nix ./steam.nix ];
|
imports = [
|
||||||
|
./emulation.nix
|
||||||
|
./minecraft.nix
|
||||||
|
./steam.nix
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
@ -4,8 +4,6 @@ let cfg = config.modules.gaming.emulation;
|
|||||||
in {
|
in {
|
||||||
options.modules.gaming.emulation.enable = lib.mkEnableOption "emulation";
|
options.modules.gaming.emulation.enable = lib.mkEnableOption "emulation";
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
ryujinx # Fuck Nintendo!
|
ryujinx # Fuck Nintendo!
|
||||||
sudachi # Nintendo Switch emulator written in C++.
|
sudachi # Nintendo Switch emulator written in C++.
|
||||||
@ -24,6 +22,7 @@ in {
|
|||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# Provide dumped keys for switch emulation
|
||||||
age.secrets."emu/switch/prod.keys" = {
|
age.secrets."emu/switch/prod.keys" = {
|
||||||
file = ../../secrets/emu/switch/prod.keys.age;
|
file = ../../secrets/emu/switch/prod.keys.age;
|
||||||
owner = "${user}";
|
owner = "${user}";
|
||||||
|
@ -5,8 +5,8 @@ in {
|
|||||||
options.modules.gaming.minecraft.enable = lib.mkEnableOption "minecraft";
|
options.modules.gaming.minecraft.enable = lib.mkEnableOption "minecraft";
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
prismlauncher # Launcher for Prism, a web application framework.
|
|
||||||
jdk17 # Java Development Kit (JDK) version 17.
|
jdk17 # Java Development Kit (JDK) version 17.
|
||||||
|
prismlauncher # Launcher for Prism, a web application framework.
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -4,22 +4,19 @@ let cfg = config.modules.gaming.steam;
|
|||||||
in {
|
in {
|
||||||
options.modules.gaming.steam.enable = lib.mkEnableOption "steam";
|
options.modules.gaming.steam.enable = lib.mkEnableOption "steam";
|
||||||
config = lib.mkIf cfg.enable {
|
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; [
|
environment.systemPackages = with pkgs; [
|
||||||
steamtinkerlaunch # Launcher and optimization tool for Steam games.
|
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.
|
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
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user