From 9a327bb1369b5be58436363ee60cf44d7a7afea2 Mon Sep 17 00:00:00 2001 From: yajo Date: Tue, 5 Jul 2022 09:16:33 +0000 Subject: [PATCH] docs: mention `$NIXOPS_STATE` As seen in https://github.com/NixOS/nixops/issues/1472, the current documented way to specify a different storage location does not really work. However, one can add `$NIXOPS_STATE` and it works. Also this is a very comfortable options for integrating with i.e. devshell. Thus I'm documenting it here, while the other issue gets fixed. --- doc/manual/migrating.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/manual/migrating.rst b/doc/manual/migrating.rst index 66a881005..6a42c855f 100644 --- a/doc/manual/migrating.rst +++ b/doc/manual/migrating.rst @@ -40,6 +40,9 @@ database located in ``~/.nixops`` add the following snippet to your deployment: }; } +To use a different location than ``~/.nixops``, also export the environment +variable ``$NIXOPS_STATE``. You can define that in your ``shell.nix``. + To implement a fire-and-forget strategy use this code snippet: .. code-block:: nix