Merge pull request #215 from dramforever/patch-2

nix: Fix channel commands
This commit is contained in:
Yuxiang Zhang 2020-08-25 19:36:08 +08:00 committed by GitHub
commit 6357812a59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -64,13 +64,13 @@ Channel 的镜像位于 <https://{{ site.hostname }}/nix-channels/> 目录下,
单独安装的 Nix 替换 `nixpkgs-unstable` 命令如下:
```console
$ nix-channel --add https://{{ site.hostname }}/nix-channels/nixpkgs-unstable
$ nix-channel --add https://{{ site.hostname }}/nix-channels/nixpkgs-unstable nixpkgs
$ nix-channel --update
```
替换 NixOS channel 命令如下(以 root 执行,将 `19.09` 替换为系统版本):
```console
# nix-channel --add https://{{ site.hostname }}/nix-channels/nixos-19.09
# nix-channel --add https://{{ site.hostname }}/nix-channels/nixos-19.09 nixos
# nix-channel --update
```