File tree Expand file tree Collapse file tree 3 files changed +28
-0
lines changed Expand file tree Collapse file tree 3 files changed +28
-0
lines changed Original file line number Diff line number Diff line change 26
26
./src/flake-module.nix
27
27
./tests/flake-module.nix
28
28
./docs/flake-module.nix
29
+ ./terraform/flake-module.nix
29
30
# allow to disable treefmt in downstream flakes
30
31
] ++ inputs . nixpkgs . lib . optional ( inputs . treefmt-nix ? flakeModule ) ./treefmt/flake-module.nix ;
31
32
Original file line number Diff line number Diff line change
1
+ use flake .# terraform
Original file line number Diff line number Diff line change
1
+ {
2
+ perSystem = { pkgs , ... } : {
3
+ devShells . terraform = pkgs . mkShell {
4
+ buildInputs = with pkgs ; [
5
+ terraform-docs
6
+ ( opentofu . withPlugins ( p : [
7
+ p . tls
8
+ p . hcloud
9
+ p . local
10
+ p . external
11
+ p . null
12
+ ] ) )
13
+ ] ;
14
+
15
+ shellHook = ''
16
+ echo "🚀 Terraform development environment"
17
+ echo "Available tools:"
18
+ echo " - terraform-docs"
19
+ echo " - opentofu"
20
+ echo ""
21
+ echo "To run tests: cd terraform/tests && tofu test"
22
+ echo "To update docs: cd terraform && ./update-docs.sh"
23
+ '' ;
24
+ } ;
25
+ } ;
26
+ }
You can’t perform that action at this time.
0 commit comments