-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjitsi-meet.nix
48 lines (36 loc) · 1.11 KB
/
jitsi-meet.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.my.services.jitsi-meet;
in {
options.my.services.jitsi-meet = {
domainName = mkOption {
default = null;
description = "domain name for Jitsi Meet (must be given to enable the service)";
type = types.nullOr types.str;
};
};
config = mkIf (cfg.domainName != null) {
# ref: <https://github.com/NixOS/nixpkgs/pull/334638>
nixpkgs.config.allowInsecurePredicate = pkg: builtins.elem (lib.getName pkg) [
"jitsi-meet"
];
services.jitsi-meet = {
enable = true;
hostName = cfg.domainName;
config = {
enableWelcomePage = false;
prejoinPageEnabled = true;
defaultLang = "de";
};
interfaceConfig = {
SHOW_JITSI_WATERMARK = false;
SHOW_WATERMARK_FOR_GUESTS = false;
};
};
services.jitsi-videobridge.openFirewall = true;
# as of 24.11, the default start script for these units do not pass shellcheck(1)
systemd.services.jicofo.enableStrictShellChecks = false;
systemd.services.jitsi-videobridge2.enableStrictShellChecks = false;
};
}