nixos-config/nixos/services/nextcloud.nix

29 lines
671 B
Nix
Raw Normal View History

2023-08-18 17:54:34 +05:00
{ config, pkgs, ... }:
{
services.nextcloud = {
enable = true;
package = pkgs.nextcloud27;
hostName = "nc.comfycamp.space";
home = "/hdd/nextcloud";
config = {
dbtype = "pgsql";
dbname = "nextcloud";
dbuser = "nextcloud";
2023-08-18 18:16:29 +05:00
dbhost = "/run/postgresql";
2023-08-18 17:54:34 +05:00
overwriteProtocol = "https";
defaultPhoneRegion = "RU";
adminuser = "lumin";
adminpassFile = "/var/lib/secrets/nextcloud/admin-pass.txt";
};
configureRedis = true;
database = {
createLocally = false;
};
};
2024-03-04 19:59:16 +05:00
services.nginx.virtualHosts."nc.comfycamp.space" = {
useACMEHost = "comfycamp.space";
forceSSL = true;
};
2023-08-18 17:54:34 +05:00
}