NixOps with state stored on target machine?

I’m using a small VPS to hosts a website and a SQL database for that website, both on the same machine.

How can I migrate this machine to NixOps so that the database is not overwritten every time I deploy new code for the website?

If it means anything, I’m using DigitalOcean, but j cannot currently afford to use their external/managed database service.


1 Like

The database won’t be overwritten. What made you think it will be?

1 Like

Oh, the disk isn’t overwritten? Oh, awesome!
For some reason, I thought the entire disk was wiped.

So migrating to nixops may or may not require you to wipe the disk depending how you choose to install, but nixops deploy will not.

1 Like