Perform remote deployments with nh
masterNH supports remote deployments using two primary flags to control where work happens:
--build-host X: The host where the configuration is built (vianix copy+nix build).--target-host Y: The host where the result is deployed and activated.
Note: Derivation evaluation always happens locally. If --target-host is provided without --hostname or -H, the hostname defaults to the value in --target-host.
| Flags used | Build location | Activation location |
|---|---|---|
| none | localhost | localhost |
--build-host X | X | localhost |
--target-host Y | localhost | Y |
--build-host X --target-host Y | X | Y |
--build-host Y --target-host Y | Y | Y |