From 232680c9bfa17a33468f3016196ae60db1a8e468 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20=E2=80=9CNiols=E2=80=9D=20Jeannerod?= Date: Fri, 31 Jan 2025 12:15:09 +0100 Subject: [PATCH] Document failure when running NixOps4 not from the repo's root --- infra/README.org | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/infra/README.org b/infra/README.org index 80cbd01..d426a0d 100644 --- a/infra/README.org +++ b/infra/README.org @@ -7,7 +7,20 @@ Their configuration can be updated via NixOps4. Run nixops4 deployments list #+end_src -to see the available deployments. Given a deployment (eg. ~git~), run +to see the available deployments. This should be done from the root of the +repository, otherwise NixOps4 will fail with something like: + +#+begin_src +nixops4 error: evaluation: error: + … while calling the 'getFlake' builtin + + error: path '/nix/store/05nn7krhvi8wkcyl6bsysznlv60g5rrf-source/flake.nix' does not exist, evaluation: error: + … while calling the 'getFlake' builtin + + error: path '/nix/store/05nn7krhvi8wkcyl6bsysznlv60g5rrf-source/flake.nix' does not exist +#+end_src + +Then, given a deployment (eg. ~git~), run #+begin_src sh nixops4 apply