This example shows how you could use terranix as flake.
nix run
nix run ".#apply"
terraform apply
nix run ".#destroy"
terraform destroy