2024-10-15 17:46:44 -04:00
|
|
|
{ pkgs, config, ... }:
|
2024-10-09 03:36:08 -04:00
|
|
|
{
|
2024-11-04 22:41:38 -05:00
|
|
|
imports = [ ./nginx ];
|
2024-10-07 11:42:34 -04:00
|
|
|
|
2024-10-29 01:07:07 -04:00
|
|
|
services.nextcloud = {
|
|
|
|
enable = true;
|
2024-11-04 22:41:38 -05:00
|
|
|
package = pkgs.nextcloud30;
|
2024-10-29 01:07:07 -04:00
|
|
|
hostName = "cloud.${config.domains.jim1}";
|
|
|
|
datadir = "/mnt/nextcloud";
|
|
|
|
https = true;
|
|
|
|
config = {
|
|
|
|
adminuser = "jimbo";
|
|
|
|
adminpassFile = "/mnt/nextcloud/password.txt";
|
|
|
|
};
|
|
|
|
settings = {
|
|
|
|
trusted_proxies = [ "127.0.0.1" ];
|
|
|
|
trusted_domains = [ "cloud.${config.domains.jim1}" ];
|
|
|
|
overwriteprotocol = "https";
|
|
|
|
mail_smtphost = "mx.${config.domains.jim1}";
|
|
|
|
mail_domain = "${config.domains.jim1}";
|
|
|
|
mail_from_address = "noreply";
|
|
|
|
mail_smtpauth = "true";
|
|
|
|
mail_smtpname = "noreply@${config.domains.jim1}";
|
|
|
|
mail_smtppassword = config.secrets.noreplyPassword;
|
|
|
|
mail_smtpmode = "smtp";
|
|
|
|
mail_smtpport = 587;
|
2024-08-24 22:16:51 -04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|