Nix (package manager)/zh: Difference between revisions

Ardenet (talk | contribs)
No edit summary
Ardenet (talk | contribs)
No edit summary
Tags: Mobile edit Mobile web edit
 
(One intermediate revision by the same user not shown)
Line 11: Line 11:
=== 安装 ===
=== 安装 ===


<div lang="en" dir="ltr" class="mw-content-ltr">
[[NixOS|NixOS]] 上,Nix 已经自动安装好了。
On [[NixOS|NixOS]], Nix is automatically installed.
</div>


如果您想在其他 Linux 发行版或在 macOS 上使用, 您可以按照 [https://nix.dev/manual/nix/stable/installation/ Nix 手册的安装章节] 来安装 Nix。
如果您想在其他 Linux 发行版或在 macOS 上使用, 您可以按照 [https://nix.dev/manual/nix/stable/installation/ Nix 手册的安装章节] 来安装 Nix。
Line 23: Line 21:


<span id="Configuration"></span>
<span id="Configuration"></span>
<div class="mw-translate-fuzzy">
=== 配置 ===
=== 配置 ===
在 NixOS 上, Nix 可以通过 [$1 <code>nix</code> 选项] 进行配置。
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
NixOS , Nix 可以通过 [https://search.nixos.org/options?query=nix <code>nix</code> 选项] 进行配置。
On NixOS, Nix can be configured using the [https://search.nixos.org/options?query=nix <code>nix</code> option].
</div>


独立安装的 Nix 通过 <code>nix.conf</code> 进行配置(其通常位于 <code>/etc/nix/</code>)。可用选项的详细说明可在 [https://nix.dev/manual/nix/stable/command-ref/conf-file Nix 参考手册] 中找到.  
独立安装的 Nix 通过 <code>nix.conf</code> 进行配置(其通常位于 <code>/etc/nix/</code>)。可用选项的详细说明可在 [https://nix.dev/manual/nix/stable/command-ref/conf-file Nix 参考手册] 中找到.  
Line 88: Line 81:


<span id="Notes"></span>
<span id="Notes"></span>
<div class="mw-translate-fuzzy">
== 备注 ==
== 备注 ==
<references />
</div>


<references />
<references />