Steam/zh: Difference between revisions
Created page with "如果您使用的是 Steam 控制器或 Valve Index,请确保已启用 Steam 硬件支持。这通常由 <code>programs.steam.enable = true;</code> ` 隐式地设置,该设置会同时启用 <code>hardware.steam-hardware.enable = true;</code> 。如有需要,您可以验证或显式地进行设置:" Tags: Mobile edit Mobile web edit |
Created page with "要运行需要标准 Linux 文件系统层次结构标准 (FHS) 的专有游戏或从互联网下载的软件,可以使用 <code>steam-run</code> 。它提供了一个类似 FHS 的环境,而无需对软件进行任何修改。 请注意,对于从 Nixpkgs 安装的客户端(如 Minigalaxy 或 Itch),这并非必要,因为它们已经根据需要使用 FHS 环境。 有两种方法可以实现 <code>steam-run</code> 功能: 1. 安装 <code>steam-run</code>..." |
||
| Line 70: | Line 70: | ||
<span id="Gamescope_Compositor_/_"Boot_to_Steam_Deck""></span> | <span id="Gamescope_Compositor_/_"Boot_to_Steam_Deck""></span> | ||
=== Gamescope Compositor / "启动至 Steam Deck" === | === Gamescope Compositor / "启动至 Steam Deck" === | ||
Gamescope 可以作为最小桌面环境运行,这意味着您可以从 TTY 启动它,并获得与 Steam Deck 硬件控制台非常相似的体验。 | |||
Gamescope | |||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||
# Clean Quiet Boot | # Clean Quiet Boot | ||
| Line 100: | Line 98: | ||
=== steam-tui === | === steam-tui === | ||
如果您想使用 steam-tui 客户端,则需要自行安装。它依赖于 <code>steamcmd</code> 的设置,因此您需要运行一次 <code>steamcmd</code> 来生成必要的配置文件。 | |||
首先,确保 <code>steamcmd</code> 可用(例如,运行 <code>nix-shell -p steamcmd</code> 或将其添加到 <code>environment.systemPackages</code> ),然后运行: | |||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
steamcmd +quit # This initializes steamcmd's directory structure | steamcmd +quit # This initializes steamcmd's directory structure | ||
</syntaxhighlight> | </syntaxhighlight> | ||
然后安装并运行 `steam-tui`。如果 `steam-tui` 出现问题,您可能需要先在 `steamcmd` 中登录: | |||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
# (Inside steamcmd prompt, if needed for full login before steam-tui) | # (Inside steamcmd prompt, if needed for full login before steam-tui) | ||
| Line 115: | Line 109: | ||
# quit | # quit | ||
</syntaxhighlight> | </syntaxhighlight> | ||
安装完成后, <code>steam-tui</code> (例如通过 <code>home.packages</code> 或 <code>environment.systemPackages</code> 安装)应该可以正常启动。 | |||
<span id="FHS_environment_only"></span> | <span id="FHS_environment_only"></span> | ||
=== 仅 FHS 环境 === | === 仅 FHS 环境 === | ||
要运行需要标准 Linux 文件系统层次结构标准 (FHS) 的专有游戏或从互联网下载的软件,可以使用 <code>steam-run</code> 。它提供了一个类似 FHS 的环境,而无需对软件进行任何修改。 | |||
请注意,对于从 Nixpkgs 安装的客户端(如 Minigalaxy 或 Itch),这并非必要,因为它们已经根据需要使用 FHS 环境。 | |||
有两种方法可以实现 <code>steam-run</code> 功能: | |||
1. 安装 <code>steam-run</code> ,可选择系统级安装或用户级安装: | |||
1. | |||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||
# In /etc/nixos/configuration.nix | # In /etc/nixos/configuration.nix | ||