34 lines
621 B
Nix
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;
|
|
};
|
|
};
|
|
}
|