Nextcloud config

This commit is contained in:
Fern Garden 2025-07-22 22:19:15 +08:00
parent a4b6c46016
commit a7d2acef9e

View file

@ -11,12 +11,34 @@
secrets."nextcloud/admin_pass" = {};
};
# Enable Nextcloud.
services.nextcloud = {
enable = true;
package = pkgs.nextcloud31;
hostName = "localhost";
config.adminpassFile = config.sops.secrets."nextcloud/admin_pass".path;
config.dbtype = "pgsql";
database.createLocally = true;
hostName = "cloud.ferngarden.net";
settings = {
trusted_proxies = ["10.0.1.102"];
overwriteprotocol = "https";
};
config = {
adminpassFile = config.sops.secrets."nextcloud/admin_pass".path;
dbtype = "pgsql";
};
database.createLocally = true;
extraApps = {
inherit
(config.services.nextcloud.package.packages.apps)
contacts
calendar
dav_push
end_to_end_encryption
gpoddersync
user_oidc
;
};
extraAppsEnable = true;
};
# Open port for Nextcloud
networking.firewall.allowedTCPPorts = [80];
}