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; [
|
||||
heroic # Game Launcher
|
||||
lutris # Game Launcher
|
||||
steam # Game Launcher
|
||||
];
|
||||
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
programs = {
|
||||
steam = {
|
||||
enable = true;
|
||||
remotePlay.openFirewall = true;
|
||||
gamescopeSession.enable = false;
|
||||
};
|
||||
# Steam: Right-click game - Properties - Launch options: gamemoderun %command%
|
||||
# Lutris: General Preferences - Enable Feral GameMode
|
||||
# - Global options - Add Environment Variables: LD_PRELOAD=/nix/store/*-gamemode-*-lib/lib/libgamemodeauto.so
|
||||
|
||||
alvr = {
|
||||
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 = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
};
|
||||
# programs.alvr = {
|
||||
# enable = true;
|
||||
# openFirewall = true;
|
||||
# };
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue