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 stringDefault
null
Example
declared in: nixos/modules/config/nix-remote-build.nixView source on NixOS/nixpkgs →"/root/.ssh/id_buildhost_builduser"