1
0
mirror of https://github.com/tboerger/nixos-config synced 2024-11-22 18:21:58 +01:00
github.com-tboerger-nixos-c.../shared/services/cloud/nextcloud.nix
2024-07-17 16:05:33 +02:00

68 lines
1.3 KiB
Nix

{ pkgs, config, lib, ... }:
with lib;
{
services = {
prometheus = {
exporters = {
nextcloud = {
enable = true;
openFirewall = true;
user = "nextcloud";
group = "nextcloud";
url = "https://cloud.boerger.ws";
username = "devops";
passwordFile = "/run/agenix/services/cloud/password";
};
};
};
nextcloud = {
enable = true;
package = pkgs.nextcloud28;
https = true;
hostName = "cloud.boerger.ws";
maxUploadSize = "1024M";
configureRedis = true;
webfinger = true;
extraAppsEnable = true;
config = {
adminuser = "devops";
adminpassFile = "/run/agenix/services/cloud/password";
dbtype = "pgsql";
dbhost = "/run/postgresql";
dbuser = "nextcloud";
dbname = "nextcloud";
};
settings = {
trusted_proxies = [ ];
default_phone_region = "DE";
overwriteProtocol = "https";
loglevel = 2;
logtype = "systemd";
};
notify_push = {
enable = true;
};
autoUpdateApps = {
enable = true;
};
extraApps = {
inherit (pkgs.nextcloud28Packages.apps) calendar contacts cookbook groupfolders impersonate notify_push polls;
};
};
};
}