What does HackerNews think of nixops?
NixOps is a tool for deploying to NixOS machines in a network or cloud.
But I believe NixOPs is the canonical way to do what you're describing in production/at scale:
https://github.com/NixOS/nixops
https://nixos.org/nixops/manual/
(more below)
If you want a more experienced answer, I suggest asking on the NixOS forum or subreddit, people are quick to answer in both places.
https://www.reddit.com/r/NixOS/
----
More useful NixOPs guides
https://www.thedroneely.com/posts/nixops-towards-the-final-f...
NixOps[0]? But yeah, it isn't featured as prominently anymore as it used to be...
There is Terraform and Ansible, of course, but Nix seems like it could combine the strengths of both of them.
NixOps is a tool for deploying to NixOS machines in a network or the cloud. Key features include:
NixOS is based on Nix, a purely functional package management system. by using Nix not only to build packages, but also things like configuration files.
By building entire system configurations from a Nix expression, NixOS ensures that such configurations don’t overwrite each other, can be rolled back, and so on.
By solving the issue at a layer below (instead of adding one like docker does) it makes things much cleaner, more powerful making obselete puppet and the like. FWIW describing a containers/vm's/os'es in guix is much more easy than using docker.
Have a look at https://github.com/NixOS/nixops too.
Ansible (et al) aren't enough => We improve a part of the underlying system => We build a new tool that makes use of the improvements and is therefor better than Ansible.
http://nixos.org/nixos/ https://github.com/NixOS/nixops
It's a young project but it already solves most of these issues.