Fix most nextcloud setup warnings
- Inside nextcloud, we previously had several warnings about defaults not being
set for regions, email not working due to a missing base URL and caches that
were too small
- This commit fixes all warnings except one about the database being used for
file lock handling, which I think we will need to setup redis to solve
Change-Id: I54d25a85cc291f3ba3fe84a9972e772f82d678a3
Reviewed-on: https://git.clicks.codes/c/Clicks/NixFiles/+/29
Tested-by: Skyler Grey <minion@clicks.codes>
Reviewed-by: Samuel Shuert <coded@clicks.codes>
diff --git a/modules/common/nextcloud.nix b/modules/common/nextcloud.nix
index 93e2828..f32cdff 100644
--- a/modules/common/nextcloud.nix
+++ b/modules/common/nextcloud.nix
@@ -34,6 +34,8 @@
"listen.group" = config.users.users.nextcloud.group;
};
+ services.nextcloud.phpOptions."opcache.interned_strings_buffer" = "32";
+
services.nextcloud.config = {
dbtype = "pgsql";
dbport = config.services.postgresql.port;
@@ -43,7 +45,11 @@
extraTrustedDomains = [ "cloud.clicks.codes" "docs.clicks.codes" ];
};
- services.nextcloud.extraOptions = { social_login_auto_redirect = true; };
+ services.nextcloud.extraOptions = {
+ social_login_auto_redirect = true;
+ default_phone_region = "US";
+ "overwrite.cli.url" = "https://nextcloud.clicks.codes";
+ };
services.nextcloud.extraApps = {
sociallogin = pkgs.fetchNextcloudApp {