Add advanced steam config

copied from n0vaviper
This commit is contained in:
GHOSCHT 2023-12-30 12:56:48 +01:00
parent 18d08756cd
commit 3d2f4e8724
Signed by: ghoscht
GPG key ID: 2C2C1C62A5388E82
2 changed files with 52 additions and 15 deletions

View file

@ -1,18 +1,55 @@
{pkgs, ...}: { {
environment.systemPackages = with pkgs.unstable; [ config,
heroic # Game Launcher lib,
lutris # Game Launcher pkgs,
steam # Game Launcher ...
]; }: {
programs = { programs = {
steam = { steam = {
enable = true; enable = true;
remotePlay.openFirewall = true; remotePlay.openFirewall = true;
gamescopeSession.enable = false;
}; };
# Steam: Right-click game - Properties - Launch options: gamemoderun %command%
# Lutris: General Preferences - Enable Feral GameMode alvr = {
# - Global options - Add Environment Variables: LD_PRELOAD=/nix/store/*-gamemode-*-lib/lib/libgamemodeauto.so enable = true;
openFirewall = true;
};
};
hardware = {
# Enable Steam hardware compatibility
# steam-hardware.enable = true;
# Enable OpenGL
opengl = {
enable = true;
driSupport = true;
driSupport32Bit = true;
extraPackages = with pkgs; [libva-utils];
};
};
# Allow Minecraft server ports
networking.firewall.allowedTCPPorts = [25565];
# Fixes SteamLink/Remote play crashing, add packages necessary for VR
environment.systemPackages = with pkgs;
[libcanberra protonup-qt]
++ [
android-tools
android-udev-rules
sidequest
BeatSaberModManager
helvum
];
# Fixes issue with SteamVR not starting
system.activationScripts = {
fixSteamVR = "${pkgs.libcap}/bin/setcap CAP_SYS_NICE+ep /home/ghoscht/.local/share/Steam/steamapps/common/SteamVR/bin/linux64/vrcompositor-launcher";
};
xdg.mime = {
defaultApplications."x-scheme-handler/steam" = "steam.desktop";
addedAssociations."x-scheme-handler/steam" = "steam.desktop";
}; };
} }

View file

@ -1,6 +1,6 @@
{ {
programs.alvr = { # programs.alvr = {
enable = true; # enable = true;
openFirewall = true; # openFirewall = true;
}; # };
} }