Distributed build: Difference between revisions

m Add small explanation for ssh-ng
m Rephrase ssh test
Line 38: Line 38:
The thing to know about the '''"Multi-user"''' installation is that '''Nix is installed with a "nix-daemon" background process that runs as root''' and actually manages the builds on your behalf. So when you call '''"nix build ..." as a non-root user, this is delegated to the nix-daemon''' process, which runs as root. And this process can further delegate the build to a remote builder; that's why the '''local machine's root user''' needs the SSH access.
The thing to know about the '''"Multi-user"''' installation is that '''Nix is installed with a "nix-daemon" background process that runs as root''' and actually manages the builds on your behalf. So when you call '''"nix build ..." as a non-root user, this is delegated to the nix-daemon''' process, which runs as root. And this process can further delegate the build to a remote builder; that's why the '''local machine's root user''' needs the SSH access.


{{Tip|The best litmus test to ensure that the SSH access works for remote Nix builds is:
{{Tip|The best test to check that the SSH access works for Nix is to run on your local machine:


nix store ping --store ssh://<REMOTE-BUILDER>
nix store ping --store ssh://<REMOTE-BUILDER>