nixos-config/configurations/camelot/nextcloud.nix

45 lines
872 B
Nix
Raw Normal View History

{ 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;
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
}