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-12-01 14:09:38 +01:00
|
|
|
package = pkgs.nextcloud30;
|
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-12-12 22:18:59 +01:00
|
|
|
maxUploadSize = "50G";
|
|
|
|
|
2024-04-11 20:15:47 +02:00
|
|
|
extraAppsEnable = true;
|
2024-12-01 14:09:38 +01: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-12-11 19:55:55 +01:00
|
|
|
user_oidc
|
2024-04-11 22:35:44 +02:00
|
|
|
;
|
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-07-02 20:56:14 +02:00
|
|
|
settings = {
|
|
|
|
default_phone_region = "FR";
|
|
|
|
};
|
|
|
|
|
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";
|
2024-12-10 13:37:56 +01:00
|
|
|
adminpassFile = config.age.secrets.nextcloudAdminPassword.path;
|
2024-04-11 20:15:47 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
caching = {
|
|
|
|
redis = true;
|
|
|
|
memcached = true;
|
|
|
|
apcu = true;
|
|
|
|
};
|
|
|
|
};
|
2024-04-11 20:08:05 +02:00
|
|
|
}
|