diff --git a/README.md b/README.md index 175e069b..42a90f07 100644 --- a/README.md +++ b/README.md @@ -148,6 +148,20 @@ Running `nix develop` will create a shell with the default beta Rust toolchain i ``` +#### Change Default `DistRoot`: + +- e.g. `RUSTUP_DIST_SERVER`=`"https://example.com"` + +Just replace `rust-overlay.overlays.default` or `(import rust-overlay)` into: + +```nix +(final: prev: { + rust-bin = rust-overlay.lib.mkRustBin { distRoot = "https://example.com/dist"; } prev; +}) +``` + +For more information, see [reference.md](./docs/reference.md). + ### Migration from [nixpkgs-mozilla] 1. Change the channel URL to `https://github.com/oxalica/rust-overlay/archive/master.tar.gz`,