nix: Specify file name for NixOS/nix-darwin config

This commit is contained in:
dramforever 2021-09-06 16:26:06 +08:00 committed by GitHub
parent 060fd844b9
commit 685b4cf469
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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" ];