As there are many options out there, I am wondering how do the Nix guru deploy their derivation, and why.
Right now I have some idea of the flow of using Nix to deploy to a non-NixOS machine(using nix in Dockerfile, and the rest is the same with Docker deployment flow), but does a better alternative exists for Nix? What is the best deployment flow and tools in your opinion, given you cannot pick a machine with NixOS to deploy to?
Thanks you for your reply. dockerTools looks promising to me. So I guess I use Nix derivation to build my project, pkgs.dockerTools to create the image. But if I need to start an Nginx reverse proxy service in my target VPS(non-bare metal and not NixOS), is the rest out of control of Nix?
For azure you can generate your own images, but I haven’t tested those waters in over a year.
What is the best deployment flow and tools in your opinion, given you cannot pick a machine with NixOS to deploy to?
Depends on the platform, already available tools, and whether you can launch your own images. You can create your own vm images with nix as well. If the platform has good support for docker, I would just ship docker images.