diff --git a/_posts/help/2019-02-17-nix.md b/_posts/help/2019-02-17-nix.md new file mode 100644 index 0000000..825ec98 --- /dev/null +++ b/_posts/help/2019-02-17-nix.md @@ -0,0 +1,30 @@ +--- +category: help +layout: help +mirrorid: help +--- + +## Nix 镜像使用帮助 + +[Nix](https://nixos.org/nix) 是一个支持 Linux 和 Mac OS X 的独特的“函数式包管理器”,具有原子更新、依赖隔离、构建尽可能可复现等特点。 + +[Nixpkgs](https://nixos.org/nixpkgs) 是 Nix 包管理器对应的软件发行版,使用 Nix 函数式语言编写,除软件包外提供用于软件定制、构建、开发环境配置的工具。 + +[NixOS](https://nixos.org) 是一个基于 Nix 和 Nixpkgs 的 GNU/Linux 发行版。在 Nixpkgs 中的软件之上 NixOS 使用 Nix 语言提供了声明式的系统配置,实现系统完整可复现、版本快速切换等功能。 + +### Nix + +细节内容,请参见 Nix 文档中的 [Installing a Binary Distribution](https://nixos.org/nix/manual/#ch-installing-binary) 一节。 + +- 单用户安装 + ```console + $ sh <(curl https://mirrors.tuna.tsinghua.edu.cn/nix/latest/install) + ``` +- 多用户安装: + ```console + $ sh <(curl https://mirrors.tuna.tsinghua.edu.cn/nix/latest/install) --daemon + ``` + +如果需要,可以在[文件列表中手动挑选需要的版本](https://mirrors.tuna.tsinghua.edu.cn/nix)。 + +目前暂时没有 Nixpkgs 软件包的镜像,敬请期待。