Gaming: Difference between revisions

Arborodin (talk | contribs)
m small fix
Arborodin (talk | contribs)
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:


== Game launchers ==
== Emulating and launchers ==


Games can be run by different applications. Some are able to include libraries from different platforms.
Games can be run by different applications. Some are able to include libraries from different platforms.
Line 56: Line 56:
|
|
|-
|-
| [[Wine]]
| [[Wine]] & [[Bottles]]
| Windows emulation
| Windows emulation and software management
|
|
| <code>wineWow64Packages</code> <code>winetricks</code>
| <code>wineWow64Packages</code> <code>winetricks</code> <code>bottles</code>
|-
|-
| Dosbox
| Dosbox
Line 65: Line 65:
|
|
| <code>dosbox</code>
| <code>dosbox</code>
|-
| [[Nixpkgs]]
| Linux games
|
|
|-
|-
|}
|}


== List of NixOS supported games ==
== List of games in Nixpkgs ==


{| class="wikitable sortable"
{| class="wikitable sortable"
Line 229: Line 224:
|}
|}


== Example of games installation ==
== Installing games ==
 
=== Workarounds ===
 
Games that aren't yet available in nixpkgs can be played by other means, including but not limited to:
 
* <code>steam-run</code> as described in [[Steam]] or by installing it then running <code>steam-run $GAME</code> or <code>steam-run ./$GAME</code>.
* <code>programs.nix-ld = { enable = true; libraries = pkgs.steam-run.fhsenv.args.multiPkgs pkgs; };</code> to run nearly any binary by including all of the libraries used by Steam. [https://old.reddit.com/r/NixOS/comments/1d1nd9l/walking_through_why_precompiled_hello_world/ (Source)]
* <code>appimage-run</code> as described in [[Appimage]].
* [[Distrobox]] to virtualize an OS that has a package for your game.
 
=== Renowned Explorers: International Society ===
=== Renowned Explorers: International Society ===
Tested with version <code>renowned_explorers_international_society_522_26056.sh</code> from gog.com. It can be played with <code>steam-run</code>, but it needs some libraries that are not normally included in Steam's FHS environment. One way to solve this is to add an overlay:
Tested with version <code>renowned_explorers_international_society_522_26056.sh</code> from gog.com. It can be played with <code>steam-run</code>, but it needs some libraries that are not normally included in Steam's FHS environment. One way to solve this is to add an overlay:
<syntaxHighlight lang=nix>
<syntaxHighlight lang=nix>
Line 254: Line 260:


== See also ==
== See also ==
* [https://github.com/NixOS/nixpkgs/tree/master/pkgs/games List of games in nixpkgs]
 
* [https://github.com/NixOS/nixpkgs/tree/master/pkgs/games Games in Nixpkgs]
* [https://github.com/fufexan/nix-gaming Gaming on Nix (by fufexan)]
* [https://search.nixos.org/packages?channel=unstable&from=0&size=50&sort=relevance&type=packages&query=game Search in nixpkgs by "game" keyword]
* [https://www.reddit.com/r/linux_gaming/wiki/freegames/ Linux Gaming Reddit wiki]
* [https://www.reddit.com/r/linux_gaming/wiki/freegames/ Linux Gaming Reddit wiki]
* [[wikipedia:List_of_open-source_video_games|List of open-source video games (en.wikipedia)]]
* [[wikipedia:List_of_open-source_video_games|List of open-source video games (en.wikipedia)]]