Skip to content

Conversation

Enzime
Copy link
Member

@Enzime Enzime commented Jul 5, 2025

This PR significantly speeds up installing my system from scratch from around 1 hour down to 10 minutes with --build-on remote and substituting most of the paths from a HTTP binary cache.

The main speed up is from using ssh-ng:// instead of ssh:// for copying derivations by removing the nix copy --derivation --to ssh://... commands which is viable now that NixOS/nix#7359 should be fixed.

SSH store compression makes a small but observable difference when copying derivations as part of the nix build.

@Enzime Enzime marked this pull request as ready for review July 6, 2025 05:44
@Enzime
Copy link
Member Author

Enzime commented Jul 6, 2025

Removed nix flake archive commands because they weren't necessary and slowed things down slightly

@Enzime Enzime changed the title nixos-anywhere: speed up nixos-anywhere: speed up --build-on remote Jul 6, 2025
@Enzime Enzime added this pull request to the merge queue Jul 9, 2025
Merged via the queue into main with commit 4b3c5fa Jul 9, 2025
4 checks passed
@Enzime Enzime deleted the speed branch July 9, 2025 05:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant