nixos-config/configurations/camelot/nextcloud.nix

52 lines
905 B
Nix

{
config,
extraInfo,
pkgs,
...
}:
{
services.nginx.virtualHosts.${extraInfo.nextcloudURI} = {
enableACME = true;
forceSSL = true;
};
services.nextcloud = {
enable = true;
package = pkgs.nextcloud28;
datadir = "/srv/nextcloud";
https = true;
hostName = extraInfo.nextcloudURI;
extraAppsEnable = true;
appstoreEnable = true;
extraApps = {
inherit (config.services.nextcloud.package.packages.apps)
calendar
cospend
twofactor_webauthn
deck
;
};
database.createLocally = true;
configureRedis = true;
settings = {
default_phone_region = "FR";
};
config = {
dbtype = "pgsql";
adminuser = "dala";
adminpassFile = config.sops.secrets.nextcloud_admin_pw.path;
};
caching = {
redis = true;
memcached = true;
apcu = true;
};
};
}