I’m fairly new to nixops and i’m trying to deploy to Digital Ocean with NixOps, which for the most part seems pretty straight forward, but is there a way to immediately update domain records? Since I plan to use Let’s Encrypt this would be extremely helpful.
Generally it seems easy since there is an API that uses the same key that is used to deploy the droplet, see /reference/api/api-try-it-now/
but i’m not sure how I would incorporate this best?
@ZerataX, from what I got you need both DNS record provisioning and certificate generation, is this right?
I think in this case you will need to implement a NixOps plugin which provides a DigitalOcean DNS resource. The Nix syntax will probably resemble this (with the DO DNS specifics of course) and the Python plugin implementation would need to talk to the DO DNS API for provisioning the zones/records. Then you would define the records you need provisioned in the NixOps deployment expression as such a resource.