mirror of
https://github.com/tuna/mirror-web.git
synced 2025-12-25 20:32:46 +00:00
nix: Fix channel commands
This commit is contained in:
parent
98dff4bae2
commit
cc41601c93
|
|
@ -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
|
||||
```
|
||||
|
|
|
|||
Loading…
Reference in New Issue