Initial commit

This commit is contained in:
Ghostfox
2026-03-30 00:20:36 +02:00
commit 63b75b2e8f
56 changed files with 2581 additions and 0 deletions

3
modules/gaming/README.md Normal file
View File

@@ -0,0 +1,3 @@
This module contains gaming-related configurations.
TLDR: Steam, Prism Launcher, MangoHud, Gamemode

View File

@@ -0,0 +1,19 @@
{ pkgs, ... }:
{
imports = [
./nix-ld.nix
./obs.nix
./prismlauncher.nix
./steam.nix
];
environment.systemPackages = with pkgs; [
audacity
blender
ffmpeg
qpwgraph
qsstv
handbrake
wineWow64Packages.waylandFull
];
}

14
modules/gaming/nix-ld.nix Normal file
View File

@@ -0,0 +1,14 @@
{ pkgs, ... }:
{
programs.nix-ld = {
enable = true;
libraries = with pkgs; [
libx11
libxext
glibc
alsa-oss
openal
libpulseaudio
];
};
}

6
modules/gaming/obs.nix Normal file
View File

@@ -0,0 +1,6 @@
{
programs.obs-studio = {
enable = true;
enableVirtualCamera = true;
};
}

View File

@@ -0,0 +1,51 @@
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
(prismlauncher.override {
additionalLibs = [
glib
nss
nspr
atk
at-spi2-atk
libdrm
expat
libgbm
gtk3
pango
cairo
alsa-lib
dbus
at-spi2-core
cups
libxcb
libx11
libxcomposite
libxdamage
libxext
libxfixes
libxrandr
libxkbcommon
libvlc
];
additionalPrograms = [
ffmpeg
python3
zenity
vlc
];
textToSpeechSupport = false;
jdks = [
# graalvmPackages.graalvm-ce
temurin-jre-bin-8
temurin-jre-bin-11
temurin-jre-bin-17
temurin-jre-bin
# temurin-jre-bin-25
];
})
];
}

24
modules/gaming/steam.nix Normal file
View File

@@ -0,0 +1,24 @@
{ pkgs, ... }:
{
programs = {
gamemode = {
enable = true;
enableRenice = true;
};
gamescope = {
enable = true;
capSysNice = true;
};
steam = {
enable = true;
extest.enable = true;
protontricks.enable = true;
};
};
environment.systemPackages = with pkgs; [
mangojuice
mangohud
];
}