diff --git a/examples/terraform/.test.sh b/examples/terraform/.test.sh new file mode 100755 index 000000000..16df6ade0 --- /dev/null +++ b/examples/terraform/.test.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +set -ex +terraform --version | grep "1.7.4" diff --git a/examples/terraform/devenv.nix b/examples/terraform/devenv.nix new file mode 100644 index 000000000..90772ee5b --- /dev/null +++ b/examples/terraform/devenv.nix @@ -0,0 +1,8 @@ +{ pkgs, ... }: + +{ + languages.terraform = { + enable = true; + version = "1.7.4"; + }; +} diff --git a/examples/terraform/devenv.yaml b/examples/terraform/devenv.yaml new file mode 100644 index 000000000..5d9357ae1 --- /dev/null +++ b/examples/terraform/devenv.yaml @@ -0,0 +1,6 @@ +allowUnfree: true +inputs: + nixpkgs: + url: github:NixOS/nixpkgs/nixpkgs-unstable + nixpkgs-terraform: + url: github:stackbuilders/nixpkgs-terraform