The nixos-anywhere terraform modules allow you to use Terraform for installing and updating NixOS. It simplifies the deployment process by integrating nixos-anywhere functionality.
Our terraform module requires the null and external provider.
You can get these by from nixpkgs like this:
nix-shell -p '(pkgs.terraform.withPlugins (p: [ p.null p.external ]))'
You can add this expression the packages
list in your devshell in flake.nix or
in shell.nix.
Checkout out the module reference for examples and module parameter on how to use the modules.