Steam: Difference between revisions
imported>Mic92 No edit summary |
imported>Makefu No edit summary |
||
Line 1: | Line 1: | ||
This page is intended to describe the current state of Steam under | This page is intended to describe the current state of Steam under NixOS. | ||
== I want to play == | == I want to play == | ||
For 64-bit systems it's important to have <syntaxhighlight lang="nix" inline>hardware.opengl.driSupport32Bit = true</syntaxhighlight> in your NixOS configuration. You'll also need <syntaxhighlight lang="nix" inline>hardware.pulseaudio.support32Bit = true</syntaxhighlight> if you are using PulseAudio - this will enable 32bit ALSA apps integration. | For 64-bit systems it's important to have <syntaxhighlight lang="nix" inline>hardware.opengl.driSupport32Bit = true</syntaxhighlight> in your NixOS configuration. You'll also need <syntaxhighlight lang="nix" inline>hardware.pulseaudio.support32Bit = true</syntaxhighlight> if you are using PulseAudio - this will enable 32bit ALSA apps integration. | ||
Install "steam" package. Run "steam". Many of the games will just work. | {{tip|text=Install "steam" package. Run "steam". Many of the games will just work.}} | ||
== Troubleshooting == | == Troubleshooting == |
Revision as of 14:27, 11 October 2017
This page is intended to describe the current state of Steam under NixOS.
I want to play
For 64-bit systems it's important to have hardware.opengl.driSupport32Bit = true
in your NixOS configuration. You'll also need hardware.pulseaudio.support32Bit = true
if you are using PulseAudio - this will enable 32bit ALSA apps integration.
Troubleshooting
I was sure you would reach this part.
Steam fails to start. What do I do?
strace is your friend.
Game X fails to start
Games may fail to start because they lack dependencies (this should be added to the script, for now), or because they cannot be patched. The steps to launch a game directly are:
- Patch the script/binary if you can
- Add a file named steam_appid.txt in the binary folder, with the appid as contents (it can be found in the stdout from steam)
- Using the LD_LIBRARY_PATH from the nix/store steam script, with some additions, launch the game binary
LD_LIBRARY_PATH=~/.steam/bin32:$LD_LIBRARY_PATH:/nix/store/pfsa... blabla ...curl-7.29.0/lib:. ./Osmos.bin32 (if you could not patchelf the game, call ld.so directly with the binary as param)
With this technique, I can play many games directly from steam. Others, like Team Fortress, cannot be patched so I only managed to run them from the cmd line.
Using the FOSS Radeon drivers
The open source radeon drivers need a newer libc++ than is provided by the default runtime, which leads to acrash on launch. Use
(steamPackages.override { newLibcpp = true; }).steam-chrootenv
in your config if you get an error like
libGL error: unable to load driver: radeonsi_dri.so libGL error: driver pointer missing libGL error: failed to load driver: radeonsi libGL error: unable to load driver: swrast_dri.so libGL error: failed to load driver: swrast
Known issues
- No java in steam chrootenv. Games affected: Towns:
/home/foo/.local/share/Steam/SteamApps/common/towns/towns.sh: line 1: java: command not found
HiDPI
If you're blessed with a higher DPI monitor, Steam's UI fonts may be unbearably tiny. You can add a custom skin from https://github.com/MoriTanosuke/HiDPI-Steam-Skin for your user to alleviate this. The skins directory is ~/.local/share/Steam/skins/.