I currently have the following nextcloud configuration:
services.nextcloud = {
enable = true;
configureRedis = true;
package = pkgs.nextcloud30;
hostName = "server.nextcloud.home";
datadir = "/mnt/storage/nextcloud";
database.createLocally = true;
extraAppsEnable = true;
autoUpdateApps.enable = true;
config = {
dbtype = "pgsql";
adminpassFile = config.sops.secrets.nextcloud-admin.path;
adminuser = "admin";
};
};
services.nginx.virtualHosts${config.services.nextcloud.hostName}.listen = [
{
addr = "0.0.0.0";
port = 8081;
}
];
The first issue I have is having home
on an external drive. This results in
Configuration was not read or initialized correctly, not overwriting /mnt/storage/nextcloud/config/config.php
When disabling this line for testing purposes, I still encounter the problem that my connection via a tailscale network is not a trusted domain. Adding every device via settings.trustedDomains seems not the correct solution to me.
Are there any solutions for my two problems?