Steam/zh: Difference between revisions

RhenCloud (talk | contribs)
Created page with "要安装 Steam 软件包并启用所有必要的系统选项以使其运行,请将以下内容添加到您的 <code>/etc/nixos/configuration.nix</code> 中:"
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
Line 50: Line 50:
== 配置 ==
== 配置 ==


<div lang="en" dir="ltr" class="mw-content-ltr">
基本 Steam 功能可以直接在 <code>programs.steam</code> 属性集中启用:
Basic Steam features can be enabled directly within the <code>programs.steam</code> attribute set:
</div>
<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">
programs.steam = {
programs.steam = {
Line 63: Line 61:
# programs.gamemode.enable = true;
# programs.gamemode.enable = true;
</syntaxhighlight>
</syntaxhighlight>
<div lang="en" dir="ltr" class="mw-content-ltr">
如果您使用的是 Steam 控制器或 Valve Index,请确保已启用 Steam 硬件支持。这通常由 <code>programs.steam.enable = true;</code> ` 隐式地设置,该设置会同时启用 <code>hardware.steam-hardware.enable = true;</code> 。如有需要,您可以验证或显式地进行设置:
If you are using a Steam Controller or a Valve Index, ensure Steam hardware support is enabled. This is typically handled by <code>programs.steam.enable = true;</code> which sets <code>hardware.steam-hardware.enable = true;</code> implicitly. You can verify or explicitly set it if needed:
</div>
<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">
hardware.steam-hardware.enable = true;
hardware.steam-hardware.enable = true;