Add advanced steam config
copied from n0vaviper
This commit is contained in:
parent
18d08756cd
commit
3d2f4e8724
2 changed files with 52 additions and 15 deletions
|
@ -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";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
programs.alvr = {
|
# programs.alvr = {
|
||||||
enable = true;
|
# enable = true;
|
||||||
openFirewall = true;
|
# openFirewall = true;
|
||||||
};
|
# };
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue