2023-12-04 11:43:06 +00:00
|
|
|
{ config, lib, ... }:
|
2023-12-18 15:02:54 +00:00
|
|
|
let
|
|
|
|
domain = config.selfprivacy.domain;
|
|
|
|
in
|
2023-12-04 11:43:06 +00:00
|
|
|
{
|
|
|
|
options.selfprivacy.modules.jitsi-meet = {
|
|
|
|
enable = lib.mkOption {
|
|
|
|
default = false;
|
|
|
|
type = with lib.types; nullOr bool;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = lib.mkIf config.selfprivacy.modules.jitsi-meet.enable {
|
|
|
|
services.jitsi-meet = {
|
|
|
|
enable = true;
|
2023-12-18 15:02:54 +00:00
|
|
|
hostName = "meet.${domain}";
|
2023-12-04 11:43:06 +00:00
|
|
|
nginx.enable = true;
|
|
|
|
interfaceConfig = {
|
|
|
|
SHOW_JITSI_WATERMARK = false;
|
|
|
|
SHOW_WATERMARK_FOR_GUESTS = false;
|
|
|
|
};
|
|
|
|
};
|
2023-12-18 15:02:54 +00:00
|
|
|
services.nginx.virtualHosts."meet.${domain}" = {
|
2023-12-20 12:59:57 +00:00
|
|
|
sslCertificate = "/var/lib/acme/wildcard-${domain}/fullchain.pem";
|
|
|
|
sslCertificateKey = "/var/lib/acme/wildcard-${domain}/key.pem";
|
2023-12-18 15:02:54 +00:00
|
|
|
forceSSL = true;
|
2023-12-19 19:46:42 +00:00
|
|
|
useACMEHost = domain;
|
|
|
|
enableACME = false;
|
2023-12-18 15:02:54 +00:00
|
|
|
};
|
2023-12-04 11:43:06 +00:00
|
|
|
};
|
|
|
|
}
|