Skip to content

Commit

Permalink
docs: mention $NIXOPS_STATE
Browse files Browse the repository at this point in the history
As seen in NixOS#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.
  • Loading branch information
yajo committed Jul 5, 2022
1 parent 7220cbd commit 9a327bb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc/manual/migrating.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9a327bb

Please sign in to comment.