selfprivacy-nixos-config/sp-modules/jitsi-meet/module.nix

30 lines
665 B
Nix
Raw Normal View History

2023-12-04 11:43:06 +00:00
{ config, lib, ... }:
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;
hostName = "meet.${domain}";
2023-12-04 11:43:06 +00:00
nginx.enable = true;
interfaceConfig = {
SHOW_JITSI_WATERMARK = false;
SHOW_WATERMARK_FOR_GUESTS = false;
};
};
services.nginx.virtualHosts."meet.${domain}" = {
forceSSL = true;
useACMEHost = domain;
enableACME = false;
};
2023-12-04 11:43:06 +00:00
};
}