nixos-conf/services/nextcloud.nix

40 lines
860 B
Nix

{ config, pkgs, ... }:
{
imports = [ ./acme-dns.nix ];
networking.firewall.allowedTCPPorts = [
80
443
];
networking.firewall.allowedUDPPorts = [ 443 ];
services = {
nextcloud = {
package = pkgs.nextcloud30;
enable = true;
hostName = "nextcloud.vsinerva.fi";
autoUpdateApps.enable = true;
https = true;
maxUploadSize = "10G";
config = {
adminpassFile = "/var/lib/nextcloud/adminpass";
};
settings = {
overwriteprotocol = "https";
maintenancce_window_start = 1;
opcache.interned_strings_buffer = 32;
};
};
nginx = {
recommendedGzipSettings = true;
virtualHosts.${config.services.nextcloud.hostName} = {
forceSSL = true;
kTLS = true;
enableACME = true;
acmeRoot = null;
};
};
};
}