aboutsummaryrefslogtreecommitdiff
path: root/doc/manual/src/advanced-topics/distributed-builds.md
diff options
context:
space:
mode:
authorGraham Christensen <graham@grahamc.com>2021-02-24 20:52:22 -0500
committerGraham Christensen <graham@grahamc.com>2021-02-25 09:17:34 -0500
commit1130b2882415b003f5ba2fc0b5466b573fe1b05a (patch)
treeee523e721a944277ce3e6fa6a95c61c3c2efeb10 /doc/manual/src/advanced-topics/distributed-builds.md
parent199081ad00e6ee4c704eaac34211b454fe0f310c (diff)
distributed builds: load remote builder host key from the machines file
This is already used by Hydra, and is very useful when materializing a remote builder list from service discovery. This allows the service discovery tool to only sync one file instead of two.
Diffstat (limited to 'doc/manual/src/advanced-topics/distributed-builds.md')
-rw-r--r--doc/manual/src/advanced-topics/distributed-builds.md10
1 files changed, 7 insertions, 3 deletions
diff --git a/doc/manual/src/advanced-topics/distributed-builds.md b/doc/manual/src/advanced-topics/distributed-builds.md
index c6966a50b..580b36736 100644
--- a/doc/manual/src/advanced-topics/distributed-builds.md
+++ b/doc/manual/src/advanced-topics/distributed-builds.md
@@ -37,7 +37,7 @@ then you need to ensure that the `PATH` of non-interactive login shells
contains Nix.
> **Warning**
->
+>
> If you are building via the Nix daemon, it is the Nix daemon user
> account (that is, `root`) that should have SSH access to the remote
> machine. If you can’t or don’t want to configure `root` to be able to
@@ -52,7 +52,7 @@ example, the following command allows you to build a derivation for
```console
$ uname
Linux
-
+
$ nix build \
'(with import <nixpkgs> { system = "x86_64-darwin"; }; runCommand "foo" {} "uname > $out")' \
--builders 'ssh://mac x86_64-darwin'
@@ -103,7 +103,7 @@ default, set it to `-`.
```nix
requiredSystemFeatures = [ "kvm" ];
```
-
+
will cause the build to be performed on a machine that has the `kvm`
feature.
@@ -112,6 +112,10 @@ default, set it to `-`.
features appear in the derivation’s `requiredSystemFeatures`
attribute..
+8. The (base64-encoded) public host key of the remote machine. If omitted, SSH
+ will use its regular known-hosts file. Specifically, the field is calculated
+ via `base64 -w0 /etc/ssh/ssh_host_ed25519_key.pub`.
+
For example, the machine specification
nix@scratchy.labs.cs.uu.nl i686-linux /home/nix/.ssh/id_scratchy_auto 8 1 kvm