2024-03-21 15:00:36 +01:00
|
|
|
{ pkgs, lib, ... }:
|
|
|
|
{
|
|
|
|
systemd.services."nextcloud-setup".requires = [ "postgresql.service" ];
|
|
|
|
systemd.services."nextcloud-setup".after = [ "postgresql.service" ];
|
2024-09-27 16:40:06 +02:00
|
|
|
environment.systemPackages = with pkgs; [ ffmpeg ];
|
2024-03-21 15:00:36 +01:00
|
|
|
|
|
|
|
environment.etc."nextcloud-admin-pass".text = "test123";
|
2024-10-15 08:58:47 +02:00
|
|
|
|
2024-03-21 15:00:36 +01:00
|
|
|
services.nextcloud = {
|
|
|
|
enable = true;
|
2024-10-14 14:26:04 +02:00
|
|
|
package = pkgs.nextcloud30;
|
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-11-13 09:28:00 +01:00
|
|
|
log_type = "file";
|
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-10-16 14:43:00 +02:00
|
|
|
enabledPreviewProviders = [
|
|
|
|
"OC\\Preview\\BMP"
|
|
|
|
"OC\\Preview\\GIF"
|
|
|
|
"OC\\Preview\\HEIC"
|
|
|
|
"OC\\Preview\\JPEG"
|
|
|
|
"OC\\Preview\\Krita"
|
|
|
|
"OC\\Preview\\MP3"
|
|
|
|
"OC\\Preview\\MP4"
|
|
|
|
"OC\\Preview\\MarkDown"
|
|
|
|
"OC\\Preview\\Movie"
|
|
|
|
"OC\\Preview\\OpenDocument"
|
|
|
|
"OC\\Preview\\PDF"
|
|
|
|
"OC\\Preview\\PNG"
|
|
|
|
"OC\\Preview\\TXT"
|
|
|
|
"OC\\Preview\\WEBP"
|
|
|
|
"OC\\Preview\\XBitmap"
|
|
|
|
];
|
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";
|
|
|
|
};
|
2024-10-15 08:58:47 +02:00
|
|
|
|
|
|
|
services.postgresql = {
|
|
|
|
ensureDatabases = [
|
|
|
|
"nextcloud"
|
|
|
|
];
|
|
|
|
ensureUsers = [
|
|
|
|
{
|
|
|
|
name = "nextcloud";
|
|
|
|
ensureDBOwnership = true;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
2024-03-21 15:00:36 +01:00
|
|
|
}
|