From 60d3b38bcbb8db84666f9eebdc2119d851aeeff9 Mon Sep 17 00:00:00 2001 From: Samuel Rounce Date: Tue, 23 Jan 2024 12:05:32 +0000 Subject: [PATCH 1/3] feat(terraform): re-export store path result from all-in-one --- terraform/all-in-one/main.tf | 4 ++++ 1 file changed, 4 insertions(+) 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 +} From f71c9427c8c1f5bef44be3c0eaeff51873d23770 Mon Sep 17 00:00:00 2001 From: Samuel Rounce Date: Tue, 23 Jan 2024 12:53:07 +0000 Subject: [PATCH 2/3] Add result output to all-in-one.md --- terraform/all-in-one.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/terraform/all-in-one.md b/terraform/all-in-one.md index 47e18e7d..6f8bc387 100644 --- a/terraform/all-in-one.md +++ b/terraform/all-in-one.md @@ -1,4 +1,4 @@ -# All-in-one +main# All-in-one Combines the install and nixos-rebuild module in one interface to install NixOS with nixos-anywhere and than keep it up-to-date with nixos-rebuild. @@ -122,6 +122,8 @@ No resources. ## Outputs -No outputs. +| Name | Description | +| ----------------------------------------------------- | ---------------------------------------------------------- | +| [result](#output_result) | The resulting store path from building `nixos_system_attr` | From d16702387b5905c0ac812714ef0dc1353a6611d6 Mon Sep 17 00:00:00 2001 From: Jonas Chevalier Date: Tue, 23 Jan 2024 21:08:04 +0100 Subject: [PATCH 3/3] Update all-in-one.md --- terraform/all-in-one.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terraform/all-in-one.md b/terraform/all-in-one.md index 6f8bc387..5770302f 100644 --- a/terraform/all-in-one.md +++ b/terraform/all-in-one.md @@ -1,4 +1,4 @@ -main# All-in-one +# All-in-one Combines the install and nixos-rebuild module in one interface to install NixOS with nixos-anywhere and than keep it up-to-date with nixos-rebuild.