nixos-config/configurations/camelot/nextcloud.nix

52 lines
905 B
Nix
Raw Normal View History

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;
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-09-01 09:23:04 +02:00
appstoreEnable = true;
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-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";
adminpassFile = config.sops.secrets.nextcloud_admin_pw.path;
};
caching = {
redis = true;
memcached = true;
apcu = true;
};
};
2024-04-11 20:08:05 +02:00
}