I wrote an article and published a repo detailing how to create NixOS images in Hetzner Cloud that you can easily reuse.
-
code (image builder): https://github.com/outskirtslabs/nixos-hetzner
-
code (terraform/tofu demo) GitHub - outskirtslabs/nixos-hetzner-demo: Continuous, rapid, NixOS deployments to Hetzner Cloud
Relies on this PR Add Hetzner Cloud image builder by stephank · Pull Request #375551 · NixOS/nixpkgs · GitHub