Initial commit
This commit is contained in:
3
modules/gaming/README.md
Normal file
3
modules/gaming/README.md
Normal file
@@ -0,0 +1,3 @@
|
||||
This module contains gaming-related configurations.
|
||||
|
||||
TLDR: Steam, Prism Launcher, MangoHud, Gamemode
|
||||
19
modules/gaming/default.nix
Normal file
19
modules/gaming/default.nix
Normal 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
14
modules/gaming/nix-ld.nix
Normal 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
6
modules/gaming/obs.nix
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
programs.obs-studio = {
|
||||
enable = true;
|
||||
enableVirtualCamera = true;
|
||||
};
|
||||
}
|
||||
51
modules/gaming/prismlauncher.nix
Normal file
51
modules/gaming/prismlauncher.nix
Normal 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
24
modules/gaming/steam.nix
Normal 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
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user