mirror of
https://github.com/ordinary-dev/nixos-config.git
synced 2024-10-18 21:15:22 +05:00
30 lines
695 B
Nix
30 lines
695 B
Nix
{ config, pkgs, ... }:
|
|
{
|
|
services.nextcloud = {
|
|
enable = true;
|
|
package = pkgs.nextcloud29;
|
|
hostName = "nc.comfycamp.space";
|
|
home = "/hdd/nextcloud";
|
|
config = {
|
|
dbtype = "pgsql";
|
|
dbname = "nextcloud";
|
|
dbuser = "nextcloud";
|
|
dbhost = "/run/postgresql";
|
|
adminuser = "lumin";
|
|
adminpassFile = "/var/lib/secrets/nextcloud/admin-pass.txt";
|
|
};
|
|
settings = {
|
|
overwriteProtocol = "https";
|
|
defaultPhoneRegion = "RU";
|
|
};
|
|
configureRedis = true;
|
|
database = {
|
|
createLocally = false;
|
|
};
|
|
};
|
|
|
|
services.nginx.virtualHosts."nc.comfycamp.space" = {
|
|
useACMEHost = "comfycamp.space";
|
|
forceSSL = true;
|
|
};
|
|
}
|