How to use terraform with IDX?

Hi,

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
2 Likes

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

Any update on this yet?

We’ve already made the change to allow unfree packages and its going through testing. We’ll deploy it live in production really soon! Either I or @Alex can update here once we have specifics.

IDX now allows unfree packages to be specified in dev.nix just like all other nix packages!

2 Likes

Yes! Thanks @Alex :slight_smile:

1 Like