Document failure when running NixOps4 not from the repo's root

This commit is contained in:
Nicolas Jeannerod 2025-01-31 12:15:09 +01:00
parent d121cd6a5b
commit 232680c9bf
Signed by untrusted user: Niols
GPG key ID: 35DB9EC8886E1CB8

View file

@ -7,7 +7,20 @@ Their configuration can be updated via NixOps4. Run
nixops4 deployments list nixops4 deployments list
#+end_src #+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 #+begin_src sh
nixops4 apply <deployment> nixops4 apply <deployment>