HermitCollective.nix/services/nextcloud.nix

23 lines
477 B
Nix
Raw Normal View History

2024-03-06 09:25:15 +00:00
{ config, pkgs, ... }:
{
services.nextcloud = {
enable = true;
2024-04-10 10:10:59 +00:00
package = pkgs.nextcloud28;
2024-03-06 09:25:15 +00:00
appstoreEnable = true;
hostName = "cloud.hermitcollective.net";
2024-08-16 11:36:41 +00:00
config = {
adminpassFile = "/etc/nextcloud-admin-pass";
dbhost = "192.168.178.193";
dbtype = "pgsql";
dbpassFile = "/etc/nextcloud-db-pass";
};
2024-03-06 09:25:15 +00:00
https = true;
};
services.nginx.virtualHosts.${config.services.nextcloud.hostName} = {
forceSSL = true;
enableACME = true;
};
}