Skip to content

nixos-anywhere: speed up --build-on remote #559

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 9, 2025
Merged

nixos-anywhere: speed up --build-on remote #559

merged 2 commits into from
Jul 9, 2025

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