2024-04-23 12:49:11 +02:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
extraInfo,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
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;
|
2024-04-12 20:05:00 +02:00
|
|
|
package = pkgs.nextcloud28;
|
2024-04-11 20:15:47 +02:00
|
|
|
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;
|
2024-04-12 20:05:00 +02:00
|
|
|
appstoreEnable = false;
|
2024-04-11 22:30:48 +02:00
|
|
|
extraApps = {
|
2024-04-11 22:35:44 +02:00
|
|
|
inherit (config.services.nextcloud.package.packages.apps)
|
|
|
|
calendar
|
|
|
|
cospend
|
|
|
|
twofactor_webauthn
|
|
|
|
deck
|
|
|
|
;
|
2024-04-11 22:30:48 +02:00
|
|
|
};
|
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 22:30:48 +02:00
|
|
|
defaultPhoneRegion = "FR";
|
|
|
|
|
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
|
|
|
}
|