From c3750079f75662a6d01a79c0a1c6335456b2d40a Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Wed, 1 Mar 2023 14:56:14 +0100 Subject: feat(ops/terraform): allow specifying an entrypoint for the attrset This adds an additional parameter `entrypoint`, pointing to a .nix file (or a directory containing a `default.nix` file) that's providing the attribute path asked for. If not set / kept at the default (empty string), it falls back to the root dir of the repository as before. Change-Id: I2e63114f21660c842153ac15424b3491d66624d2 Reviewed-on: https://cl.tvl.fyi/c/depot/+/8190 Reviewed-by: tazjin Tested-by: BuildkiteCI Autosubmit: flokli --- ops/terraform/deploy-nixos/main.tf | 13 ++++++++++++- ops/terraform/deploy-nixos/nixos-eval.sh | 7 +++---- 2 files changed, 15 insertions(+), 5 deletions(-) (limited to 'ops/terraform') diff --git a/ops/terraform/deploy-nixos/main.tf b/ops/terraform/deploy-nixos/main.tf index 3ff7bfc3f30a..d39610327a0e 100644 --- a/ops/terraform/deploy-nixos/main.tf +++ b/ops/terraform/deploy-nixos/main.tf @@ -24,6 +24,16 @@ variable "target_host" { type = string } +variable "entrypoint" { + description = <