- If I interrupt the build process, e.g. Ctrl+C, will the remote building be canceled as well?
- Will different version of nix affect the output? When I do
nixos-rebuild
, it will fetch the latest nix and use it to build package and configurations. Does this matter? And should I regularly update the nix package on the remote machine manually?
1 Like
- yes, that’s so in my experience. Even if some other build (that wasn’t cancelled) is waiting for the same build step.
- no, it shouldn’t. We try to keep compatibility. IMHO having sandboxing or not is the largest practical difference; I recommend to turn it on, to decrease various issues in packages.
Hi @vcunat, thanks for your reply! So is there a way to “delegate” all the building stuff to a remote machine and fetch it later when I nixos-rebuild
? It always took hours to build the kernel and virtualbox with extension pack, and I don’t want to keep the process running…
1 Like
You can start a build on the remote machine, have services.nix-serve
running and configure it as a binary cache.
Or, you can nix-copy-closure your drv to the remote, do nix-store -r there
and nix-copy-closure the result back.
Frank