mirror of
https://github.com/tuna/mirror-web.git
synced 2025-12-26 05:02:48 +00:00
nix: Specify file name for NixOS/nix-darwin config
This commit is contained in:
parent
060fd844b9
commit
685b4cf469
|
|
@ -45,13 +45,13 @@ Binary cache 的镜像位于 <https://{{ site.hostname }}/nix-channels/store>,
|
|||
substituters = https://{{ site.hostname }}/nix-channels/store https://cache.nixos.org/
|
||||
```
|
||||
|
||||
- NixOS 和 nix-darwin 使用如下配置:
|
||||
- NixOS 和 nix-darwin 在 `configuration.nix` 中使用如下配置:
|
||||
|
||||
```nix
|
||||
nix.binaryCaches = [ "https://{{ site.hostname }}/nix-channels/store" "https://cache.nixos.org/" ];
|
||||
```
|
||||
|
||||
- NixOS 19.09 及以后版本和 nix-darwin 中系统会自动配置备选源站,也可用如下配置:
|
||||
- NixOS 19.09 及以后版本和 nix-darwin 中系统会自动配置备选源站,也可用如下配置,同样在 `configuration.nix`:
|
||||
|
||||
```nix
|
||||
nix.binaryCaches = [ "https://{{ site.hostname }}/nix-channels/store" ];
|
||||
|
|
|
|||
Loading…
Reference in New Issue