nixos-config/configurations/camelot/nextcloud.nix

34 lines
621 B
Nix
Raw Normal View History

2024-04-11 20:15:47 +02:00
{ config, extraInfo, ... }:
2024-04-11 20:08:05 +02:00
{
2024-04-11 20:15:47 +02:00
services.nginx.virtualHosts.${extraInfo.nextcloudURI} = {
enableACME = true;
forceSSL = true;
};
2024-04-11 20:08:05 +02:00
2024-04-11 20:15:47 +02:00
services.nextcloud = {
enable = true;
datadir = "/srv/nextcloud";
https = true;
hostName = extraInfo.nextcloudURI;
2024-04-11 20:08:05 +02:00
2024-04-11 20:15:47 +02:00
extraAppsEnable = true;
extraApps = { };
2024-04-11 20:08:05 +02:00
2024-04-11 20:15:47 +02:00
database.createLocally = true;
configureRedis = true;
2024-04-11 20:08:05 +02:00
2024-04-11 20:15:47 +02:00
config = {
dbtype = "pgsql";
2024-04-11 20:08:05 +02:00
2024-04-11 20:15:47 +02:00
adminuser = "dala";
adminpassFile = config.sops.secrets.nextcloud_admin_pw.path;
};
caching = {
redis = true;
memcached = true;
apcu = true;
};
};
2024-04-11 20:08:05 +02:00
}