diff --git a/help/_posts/2019-02-17-nix.md b/help/_posts/2019-02-17-nix.md index ae66a8c..e7818b5 100644 --- a/help/_posts/2019-02-17-nix.md +++ b/help/_posts/2019-02-17-nix.md @@ -45,13 +45,13 @@ Binary cache 的镜像位于 , 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" ];