How to use terraform with IDX?


I was trying to create an IDX project to deploy some code to GCP using Terraform.

But when trying to install it with the dev.nix file. I’ve encountered several issues. It seems it is an “unfree” package and nix requres a special flag to be defined. But when applying the configuration stated in the official nix website. It seems to keep crashing:

Documentation: Unfree Software - NixOS Wiki

Additionally, I also tried a temporal workaround. It seems to be possible to install it with a nix-shell command (this is not permanent). But the installation takes ages.

NIXPKGS_ALLOW_UNFREE=1 nix-shell -p terraform
1 Like

Same problem here, I don’t know how to enable unfree packages.