about summary refs log tree commit diff
path: root/corp/ops/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'corp/ops/default.nix')
-rw-r--r--corp/ops/default.nix21
1 files changed, 21 insertions, 0 deletions
diff --git a/corp/ops/default.nix b/corp/ops/default.nix
new file mode 100644
index 000000000000..59a998cca032
--- /dev/null
+++ b/corp/ops/default.nix
@@ -0,0 +1,21 @@
+{ depot, lib, pkgs, ... }:
+
+depot.nix.readTree.drvTargets rec {
+  # Provide a Terraform wrapper with Yandex Cloud support.
+  terraform = pkgs.terraform.withPlugins (p: [
+    p.yandex
+  ]);
+
+  validate = depot.tools.checks.validateTerraform {
+    inherit terraform;
+    name = "corp";
+    src = lib.cleanSource ./.;
+  };
+
+  deps = depot.tools.depot-deps.overrideDeps {
+    tf-yandex = {
+      attr = "corp.ops.terraform";
+      cmd = "terraform";
+    };
+  };
+}