Distributed build: Difference between revisions
Malteneuss (talk | contribs) m Add small explanation for ssh-ng |
Malteneuss (talk | contribs) 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 | {{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> | ||