remote-nix-build.md
With a tailscale mash network setup between remote machines, ad-hoc remote builds can be achieved with:
nix build --eval-store auto --store ssh-ng://[machine] ...
This will not copy the build results into your local store.
Usenix copy-closure
to copy the build result from the remote store to your local store.nix-copy-closure --from [machine] /nix/store/...
Pass the --json flag to the
nix build
command to find the get the output paths of the build results.
About
GitHub:dominicegginton Stack Overflow: dominic-egginton Linkedin: dominic-egginton From:Midlands UK