Nix (package manager)/zh: Difference between revisions
No edit summary |
No edit summary Tags: Mobile edit Mobile web edit |
||
| (One intermediate revision by the same user not shown) | |||
| Line 11: | Line 11: | ||
=== 安装 === | === 安装 === | ||
在 [[NixOS|NixOS]] 上,Nix 已经自动安装好了。 | |||
如果您想在其他 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> | ||
=== 配置 === | === 配置 === | ||
在 NixOS 上, Nix 可以通过 [https://search.nixos.org/options?query=nix <code>nix</code> 选项] 进行配置。 | |||
独立安装的 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> | ||
== 备注 == | == 备注 == | ||
<references /> | <references /> | ||