Hi folks!
I’m in the process of setting up Nextcloud on my digitalocean server. After following this blog post and the nextcloud entry in the NixOS manual, I have a Nextcloud instance that appears to be working nicely!
Now, I’d like to use my S3 object space as the primary storage for my Nextcloud instance.
I found this blog post which describes how to update Nextcloud’s config.php
in order to achieve this, however I’d like to try and achieve this using the Nix services.nextcloud
configuration if at all possible. The issue I’m running into is that it’s not obvious to me where I can add this.
My suspicion is that I might need to add a new objectstore
option that translates to the necessary config here. However, the necessary configuration requires adding some secrets, namely the access key for the storage. While I’ve written nix modules with custom options before, I haven’t worked with secrets so I’m a little unsure how to go about this safely.
Has anyone managed to achieve something like this or might be able to point me in the right direction?