2024-03-21 15:00:36 +01:00
|
|
|
{ pkgs, lib, ... }:
|
|
|
|
{
|
|
|
|
systemd.services."nextcloud-setup".requires = [ "postgresql.service" ];
|
|
|
|
systemd.services."nextcloud-setup".after = [ "postgresql.service" ];
|
|
|
|
|
|
|
|
environment.etc."nextcloud-admin-pass".text = "test123";
|
|
|
|
services.nextcloud = {
|
|
|
|
enable = true;
|
2024-06-11 10:28:46 +02:00
|
|
|
package = pkgs.nextcloud29;
|
2024-03-21 15:00:36 +01:00
|
|
|
hostName = "nc.hoyer.xyz";
|
|
|
|
https = true;
|
|
|
|
configureRedis = true;
|
2024-06-12 10:44:55 +02:00
|
|
|
settings = {
|
2024-03-21 15:00:36 +01:00
|
|
|
mail_smtpmode = "sendmail";
|
|
|
|
mail_sendmailmode = "pipe";
|
2024-06-22 15:12:57 +02:00
|
|
|
default_phone_region = "DE";
|
2024-03-21 15:00:36 +01:00
|
|
|
};
|
|
|
|
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";
|
|
|
|
};
|
|
|
|
}
|