23 lines
477 B
Nix
23 lines
477 B
Nix
{ config, pkgs, ... }:
|
|
|
|
{
|
|
services.nextcloud = {
|
|
enable = true;
|
|
package = pkgs.nextcloud28;
|
|
appstoreEnable = true;
|
|
hostName = "cloud.hermitcollective.net";
|
|
config = {
|
|
adminpassFile = "/etc/nextcloud-admin-pass";
|
|
dbhost = "192.168.178.193";
|
|
dbtype = "pgsql";
|
|
dbpassFile = "/etc/nextcloud-db-pass";
|
|
};
|
|
https = true;
|
|
};
|
|
services.nginx.virtualHosts.${config.services.nextcloud.hostName} = {
|
|
forceSSL = true;
|
|
enableACME = true;
|
|
};
|
|
}
|
|
|