Back to browse
GitHub Repository
2 starsRust

Tfg – flake.nix generator for Terraform projects

by import-shiburin·Feb 24, 2026·1 point·0 comments

AI Analysis

●●SolidSolve My ProblemNiche Gem

Eliminates tedious manual flake.nix generation for Terraform version pinning.

Strengths
  • Solves real friction point for NixOS Terraform users (tfenv/asdf aren't viable)
  • Searches nixpkgs commit history to find exact matching Terraform binary
  • Supports NixOS module + Home Manager integration for seamless adoption
Weaknesses
  • Extremely niche: only valuable to teams using both NixOS and Terraform together
  • No evidence of adoption or usage beyond the author's team
Target Audience

SRE/DevOps teams using NixOS and Terraform

Similar To

tfenv · asdf (version manager)

Post Description

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!

Similar Projects

AI/ML●●Solid

SkillForge – Turn code and docs into instructions AI agents can follow

AST-parsed skills with line citations when Firecrawl and JinaAI already exist.

Big BrainSolve My Problem
tigoo
102mo ago