refactor: reorder nextcloud.nix configurations

Reorganized the configuration blocks for better readability. The `enabledPreviewProviders` list and `phpOptions` section now follow a more logical structure.
This commit is contained in:
Harald Hoyer 2024-10-16 14:43:00 +02:00
parent af5c62eb4b
commit 82c476bd75

View file

@ -16,18 +16,7 @@
mail_smtpmode = "sendmail";
mail_sendmailmode = "pipe";
default_phone_region = "DE";
};
phpOptions = {
upload_max_filesize = lib.mkForce "1G";
post_max_size = lib.mkForce "1G";
"opcache.interned_strings_buffer" = "16";
};
config.adminpassFile = "/etc/nextcloud-admin-pass";
config.dbtype = "pgsql";
config.dbname = "nextcloud";
config.dbhost = "/run/postgresql";
config.dbuser = "nextcloud";
extraOptions.enabledPreviewProviders = [
enabledPreviewProviders = [
"OC\\Preview\\BMP"
"OC\\Preview\\GIF"
"OC\\Preview\\HEIC"
@ -45,6 +34,17 @@
"OC\\Preview\\XBitmap"
];
};
phpOptions = {
upload_max_filesize = lib.mkForce "1G";
post_max_size = lib.mkForce "1G";
"opcache.interned_strings_buffer" = "16";
};
config.adminpassFile = "/etc/nextcloud-admin-pass";
config.dbtype = "pgsql";
config.dbname = "nextcloud";
config.dbhost = "/run/postgresql";
config.dbuser = "nextcloud";
};
services.postgresql = {
ensureDatabases = [