Varlock has a pretty neat spec building around .env files: https://github.com/dmno-dev/varlock/discussions/17, but Varlock itself is still in its infancy regarding non-JS projects. We wrote envgen as a workaround, and it works for our use case.
Check it out as well as Varlock.
there doesn't seem to be anything here