Steam/zh: Difference between revisions

RhenCloud (talk | contribs)
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
RhenCloud (talk | contribs)
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_/_&quot;Boot_to_Steam_Deck&quot;"></span>
<span id="Gamescope_Compositor_/_&quot;Boot_to_Steam_Deck&quot;"></span>
=== Gamescope Compositor / "启动至 Steam Deck" ===
=== Gamescope Compositor / "启动至 Steam Deck" ===
<div lang="en" dir="ltr" class="mw-content-ltr">
Gamescope 可以作为最小桌面环境运行,这意味着您可以从 TTY 启动它,并获得与 Steam Deck 硬件控制台非常相似的体验。
Gamescope can function as a minimal desktop environment, meaning you can launch it from a TTY and have an experience very similar to the Steam Deck hardware console.
</div>
<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">
# Clean Quiet Boot
# Clean Quiet Boot
Line 100: Line 98:


=== steam-tui ===
=== steam-tui ===
<div lang="en" dir="ltr" class="mw-content-ltr">
如果您想使用 steam-tui 客户端,则需要自行安装。它依赖于 <code>steamcmd</code> 的设置,因此您需要运行一次 <code>steamcmd</code> 来生成必要的配置文件。
If you want the steam-tui client, you'll have to install it. It relies on <code>steamcmd</code> being set up, so you'll need to run <code>steamcmd</code> once to generate the necessary configuration files.
首先,确保 <code>steamcmd</code> 可用(例如,运行 <code>nix-shell -p steamcmd</code> 或将其添加到 <code>environment.systemPackages</code> ),然后运行:
First, ensure <code>steamcmd</code> is available (e.g., via <code>nix-shell -p steamcmd</code> or by adding it to <code>environment.systemPackages</code>), then run:
</div>
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
steamcmd +quit # This initializes steamcmd's directory structure
steamcmd +quit # This initializes steamcmd's directory structure
</syntaxhighlight>
</syntaxhighlight>
<div lang="en" dir="ltr" class="mw-content-ltr">
然后安装并运行 `steam-tui`。如果 `steam-tui` 出现问题,您可能需要先在 `steamcmd` 中登录:
Then install and run `steam-tui`. You may need to log in within `steamcmd` first if `steam-tui` has issues:
</div>
<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>
<div lang="en" dir="ltr" class="mw-content-ltr">
安装完成后, <code>steam-tui</code> (例如通过 <code>home.packages</code> <code>environment.systemPackages</code> 安装)应该可以正常启动。
After setup, <code>steam-tui</code> (if installed e.g. via <code>home.packages</code> or <code>environment.systemPackages</code>) should start fine.
</div>


<span id="FHS_environment_only"></span>
<span id="FHS_environment_only"></span>
=== 仅 FHS 环境 ===
=== 仅 FHS 环境 ===
<div lang="en" dir="ltr" class="mw-content-ltr">
要运行需要标准 Linux 文件系统层次结构标准 (FHS) 的专有游戏或从互联网下载的软件,可以使用 <code>steam-run</code> 。它提供了一个类似 FHS 的环境,而无需对软件进行任何修改。
To run proprietary games or software downloaded from the internet that expect a typical Linux Filesystem Hierarchy Standard (FHS), you can use <code>steam-run</code>. This provides an FHS-like environment without needing to patch the software.
请注意,对于从 Nixpkgs 安装的客户端(如 Minigalaxy Itch),这并非必要,因为它们已经根据需要使用 FHS 环境。
Note that this is not necessary for clients installed from Nixpkgs (like Minigalaxy or Itch), which already use the FHS environment as needed.
有两种方法可以实现 <code>steam-run</code> 功能:
There are two options to make <code>steam-run</code> available:
1. 安装 <code>steam-run</code> ,可选择系统级安装或用户级安装:
1. Install <code>steam-run</code> system-wide or user-specifically:
</div>
<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">
# In /etc/nixos/configuration.nix
# In /etc/nixos/configuration.nix