nix.buildMachines.*.sshKey

NixOS option

The path to the SSH private key with which to authenticate on the build machine. The private key must not have a passphrase. If null, the building user (root on NixOS machines) must have an appropriate ssh configuration to log in non-interactively. Note that for security reasons, this path must point to a file in the local filesystem, not to the nix store.

type: null or string
Default
null
Example
"/root/.ssh/id_buildhost_builduser"
declared in: nixos/modules/config/nix-remote-build.nixView source on NixOS/nixpkgs →