Talk:Steam: Difference between revisions

From NixOS Wiki
Latest comment: 6 August 2022 by Toraritte
imported>Pmarreck
No edit summary
imported>Hughobrien
Failed to create SDL window
Line 6: Line 6:
== if you get "error: lib not defined" ==
== if you get "error: lib not defined" ==
The config code that includes lib.getName will error if simply included in configuration.nix unless "lib" is included in the list of args at the top; example: `{ config, pkgs, lib, ... }:`
The config code that includes lib.getName will error if simply included in configuration.nix unless "lib" is included in the list of args at the top; example: `{ config, pkgs, lib, ... }:`
== Failed to create SDL window ==
You may have `SDL_VIDEODRIVER=wayland` set in your environment, which seems to bother some older titles (e.g. original Half-Life). Set the launch options in the steam UI to 'SDL_VIDEODRIVER=x11 %command%' and it should work.
Alternative fixes shown here: https://github.com/ValveSoftware/Source-1-Games/issues/3455

Revision as of 18:00, 29 May 2023

Elaborating on the incomplete flag (expansion template): Tried to install steam the way it is described here, and even with nix-shell, but no joy. Read a lot about steam-run but have no clue what it is, or how to use it, and the package description is completely devoid of any info. --Toraritte (talk) 19:05, 6 August 2022 (UTC)Reply

Thank you!

Finally I can run GOG on NixOS without patching or repatching any executable. Figured it out, hope it helps others. Big kudo's to maintainers of steam and steam-run for the wonderful expression!! Cx405 (talk) 03:51, 10 July 2019 (UTC)Reply

if you get "error: lib not defined"

The config code that includes lib.getName will error if simply included in configuration.nix unless "lib" is included in the list of args at the top; example: `{ config, pkgs, lib, ... }:`


Failed to create SDL window

You may have `SDL_VIDEODRIVER=wayland` set in your environment, which seems to bother some older titles (e.g. original Half-Life). Set the launch options in the steam UI to 'SDL_VIDEODRIVER=x11 %command%' and it should work.

Alternative fixes shown here: https://github.com/ValveSoftware/Source-1-Games/issues/3455