nixos-config/configurations/camelot/nextcloud.nix
2024-04-11 20:33:12 +02:00

34 lines
621 B
Nix

{ config, extraInfo, ... }:
{
services.nginx.virtualHosts.${extraInfo.nextcloudURI} = {
enableACME = true;
forceSSL = true;
};
services.nextcloud = {
enable = true;
datadir = "/srv/nextcloud";
https = true;
hostName = extraInfo.nextcloudURI;
extraAppsEnable = true;
extraApps = { };
database.createLocally = true;
configureRedis = true;
config = {
dbtype = "pgsql";
adminuser = "dala";
adminpassFile = config.sops.secrets.nextcloud_admin_pw.path;
};
caching = {
redis = true;
memcached = true;
apcu = true;
};
};
}