diff --git a/terraform/all-in-one.md b/terraform/all-in-one.md index 47e18e7d..5770302f 100644 --- a/terraform/all-in-one.md +++ b/terraform/all-in-one.md @@ -122,6 +122,8 @@ No resources. ## Outputs -No outputs. +| Name | Description | +| ----------------------------------------------------- | ---------------------------------------------------------- | +| [result](#output_result) | The resulting store path from building `nixos_system_attr` | diff --git a/terraform/all-in-one/main.tf b/terraform/all-in-one/main.tf index 451c3abc..b25cbf3e 100644 --- a/terraform/all-in-one/main.tf +++ b/terraform/all-in-one/main.tf @@ -46,3 +46,7 @@ module "nixos-rebuild" { target_host = var.target_host target_user = var.target_user } + +output "result" { + value = module.system-build.result +}