nix: Fix channel commands

This commit is contained in:
dramforever 2020-08-25 00:38:04 +08:00 committed by GitHub
parent 98dff4bae2
commit cc41601c93
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
```