You have two options:
- Pull:
- You run ‘build’ on target server, but instead of building it locally it pulls from channels/substituters
- Substituters: Sharing Packages Between Machines - Nix Reference Manual
- HTTP
- SSH from another NixOS
- S3 with any AWS S3 compatible API
- AWS S3
- MinIO
- Any other cloud provider may work
- Push:
- You build your package in a computer and send it to another
- copy-closure (over ssh)
- deploy-rs
- Cachix Agents (is more or less a mix of pull and pushing)
Related: