Steam: Difference between revisions
imported>ThanePatrol m Added note to allow use of 32bit libraries as steam depends on them. See https://github.com/NixOS/nixpkgs/pull/45030#issuecomment-429654106 |
imported>Jhvst add gamescope subsection with relevant information under "Adding missing dependencies" |
||
Line 96: | Line 96: | ||
You can test java availability by invoking chrooted bash instance: <code>steam-run bash</code> and then typing: <code>java -version</code>. Can be combined with extra packages above. | You can test java availability by invoking chrooted bash instance: <code>steam-run bash</code> and then typing: <code>java -version</code>. Can be combined with extra packages above. | ||
=== gamescope === | |||
The [https://github.com/ValveSoftware/gamescope gamescope] compositor, which enables features such as resolution upscaling and stretched aspect ratios (such as 4:3), can be fixed by adding the following override to Steam: | |||
<syntaxHighlight lang=nix> | |||
nixpkgs.config.packageOverrides = pkgs: { | |||
steam = pkgs.steam.override { | |||
extraPkgs = pkgs: with pkgs; [ | |||
xorg.libXcursor | |||
xorg.libXi | |||
xorg.libXinerama | |||
xorg.libXScrnSaver | |||
libpng | |||
libpulseaudio | |||
libvorbis | |||
stdenv.cc.cc.lib | |||
libkrb5 | |||
keyutils | |||
]; | |||
}; | |||
}; | |||
</syntaxHighlight> | |||
After this, ensure that the package <code>gamescope</code> is installed by adding it to <code>environment.systemPackages</code>, for example. | |||
For background, see [https://github.com/NixOS/nixpkgs/issues/162562#issuecomment-1229444338 the discussion on GitHub]. | |||
== Troubleshooting == | == Troubleshooting == |