Harald Hoyer
6d2951155c
Upgrade Nextcloud package from version 29 to 30. This ensures compatibility with new features and improvements in Nextcloud 30.
48 lines
1.3 KiB
Nix
48 lines
1.3 KiB
Nix
{ pkgs, lib, ... }:
|
|
{
|
|
systemd.services."nextcloud-setup".requires = [ "postgresql.service" ];
|
|
systemd.services."nextcloud-setup".after = [ "postgresql.service" ];
|
|
environment.systemPackages = with pkgs; [ ffmpeg ];
|
|
|
|
environment.etc."nextcloud-admin-pass".text = "test123";
|
|
services.nextcloud = {
|
|
enable = true;
|
|
package = pkgs.nextcloud30;
|
|
hostName = "nc.hoyer.xyz";
|
|
https = true;
|
|
configureRedis = true;
|
|
settings = {
|
|
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 = [
|
|
"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"
|
|
];
|
|
};
|
|
}
|