The nixops manual mentions DigitalOcean as a possibility, but I wonder whether it is really supported. Is there anyone using nixops on DigitalOcean?
I installed it (in DigitalOcean) and tried the “trivial” example in the manual. The manual says “Note that we rely on a ssh key resource with the hard-coded name ssh-key
.” The line of code in the example is
resources.sshKeyPairs.ssh-key = {};
I found a section that discussed the use of sshKeyPairs for AWS; it said to leave it like this and it would generate a keypair called “ssh-key”. But maybe on DigitalOcean I need to generate the keys myself and put them somewhere. I tried calling them ssh-key and ssh-key.pub and putting them in .ssh, but that didn’t work. The error I get is
Exception: Please specify a ssh-key resource (resources.sshKeyPairs.ssh-key = {}).
Anybody have an idea what I should do?