Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
17 lines
655 B
Markdown
17 lines
655 B
Markdown
# prefer-remote-fetch overlay {#sec-prefer-remote-fetch}
|
|
|
|
`prefer-remote-fetch` is an overlay that downloads sources on a remote builder. This is useful when the evaluating machine has a slow upload while the builder can fetch faster, directly from the source. To use it, put the following snippet as a new overlay:
|
|
|
|
```nix
|
|
self: super: (super.prefer-remote-fetch self super)
|
|
```
|
|
|
|
A full configuration example that sets the overlay up for your own account could look like this
|
|
|
|
```ShellSession
|
|
$ mkdir ~/.config/nixpkgs/overlays/
|
|
$ cat > ~/.config/nixpkgs/overlays/prefer-remote-fetch.nix <<EOF
|
|
self: super: super.prefer-remote-fetch self super
|
|
EOF
|
|
```
|