Hello HN! Working as a SRE, our team handle a lot of terraform projects.
Dealing with them, one annoyance is matching terraform version for all of those projects, usually done by (1) finding file containing `required_version` field, (2) finding nixpkgs commit for that version, and (3) copying flake.nix from somewhere else. Using alternative version manager like tfenv or asdf is not possible for some teammates who are using NixOS as their daily driver.
This tool parses HCL of all .tf files in given directory, usually current working directory, looks for `required_version` of terraform, finds matching nixpkgs commit, and generates/updates flake.nix to use needed version of terraform.
Any feedbacks are appreciated. Thanks!