nixos-config/configurations/camelot/nextcloud.nix
2024-04-11 22:30:48 +02:00

38 lines
765 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 = {
inherit (config.services.nextcloud.package.packages.apps) calendar cospend twofactor_webauthn deck;
};
database.createLocally = true;
configureRedis = true;
config = {
dbtype = "pgsql";
defaultPhoneRegion = "FR";
adminuser = "dala";
adminpassFile = config.sops.secrets.nextcloud_admin_pw.path;
};
caching = {
redis = true;
memcached = true;
apcu = true;
};
};
}