diff options
author | Cleeyv <cleeyv@riseup.net> | 2021-10-11 07:46:08 -0700 |
---|---|---|
committer | tomberek <tomberek@users.noreply.github.com> | 2021-10-25 20:46:24 -0400 |
commit | 917c5fae70f9d8ec43653e5a6e3ea764ce7bd2c8 (patch) | |
tree | d19363122cce7f4b9ac4737aa3b21ca12bde0e59 | |
parent | ec3c9b1306190c6dc16f966bde674d5e2abac897 (diff) | |
download | nixpkgs-917c5fae70f9d8ec43653e5a6e3ea764ce7bd2c8.tar nixpkgs-917c5fae70f9d8ec43653e5a6e3ea764ce7bd2c8.tar.gz nixpkgs-917c5fae70f9d8ec43653e5a6e3ea764ce7bd2c8.tar.bz2 nixpkgs-917c5fae70f9d8ec43653e5a6e3ea764ce7bd2c8.tar.lz nixpkgs-917c5fae70f9d8ec43653e5a6e3ea764ce7bd2c8.tar.xz nixpkgs-917c5fae70f9d8ec43653e5a6e3ea764ce7bd2c8.tar.zst nixpkgs-917c5fae70f9d8ec43653e5a6e3ea764ce7bd2c8.zip |
nixos/jibri: fix & docs for enable not via meet
-rw-r--r-- | nixos/modules/services/networking/jibri/default.nix | 30 | ||||
-rw-r--r-- | nixos/modules/services/web-apps/jitsi-meet.nix | 10 |
2 files changed, 34 insertions, 6 deletions
diff --git a/nixos/modules/services/networking/jibri/default.nix b/nixos/modules/services/networking/jibri/default.nix index b4e41a29282..4aa60e31052 100644 --- a/nixos/modules/services/networking/jibri/default.nix +++ b/nixos/modules/services/networking/jibri/default.nix @@ -86,7 +86,7 @@ let in { options.services.jibri = with types; { - enable = mkEnableOption "Jitsi BRoadcasting Infrastructure. Currently the only supported way of enabling a jibri instance is with <option>services.jitsi-meet.jibri.enable</option>"; + enable = mkEnableOption "Jitsi BRoadcasting Infrastructure. Currently Jibri must be run on a host that is also running <option>services.jitsi-meet.enable</option>, so for most use cases it will be simpler to run <option>services.jitsi-meet.jibri.enable</option>"; config = mkOption { type = attrs; default = { }; @@ -142,6 +142,34 @@ in description = '' XMPP servers to connect to. ''; + example = literalExpression '' + "jitsi-meet" = { + xmppServerHosts = [ "localhost" ]; + xmppDomain = config.services.jitsi-meet.hostName; + + control.muc = { + domain = "internal.''${config.services.jitsi-meet.hostName}"; + roomName = "JibriBrewery"; + nickname = "jibri"; + }; + + control.login = { + domain = "auth.''${config.services.jitsi-meet.hostName}"; + username = "jibri"; + passwordFile = "/var/lib/jitsi-meet/jibri-auth-secret"; + }; + + call.login = { + domain = "recorder.''${config.services.jitsi-meet.hostName}"; + username = "recorder"; + passwordFile = "/var/lib/jitsi-meet/jibri-recorder-secret"; + }; + + usageTimeout = "0"; + disableCertificateVerification = true; + stripFromRoomDomain = "conference."; + }; + ''; default = { }; type = attrsOf (submodule ({ name, ... }: { options = { diff --git a/nixos/modules/services/web-apps/jitsi-meet.nix b/nixos/modules/services/web-apps/jitsi-meet.nix index 8dc611c32e3..2f1c4acec1e 100644 --- a/nixos/modules/services/web-apps/jitsi-meet.nix +++ b/nixos/modules/services/web-apps/jitsi-meet.nix @@ -52,7 +52,7 @@ in type = str; example = "meet.example.org"; description = '' - Hostname of the Jitsi Meet instance. + FQDN of the Jitsi Meet instance. ''; }; @@ -140,9 +140,8 @@ in description = '' Whether to enable a Jibri instance and configure it to connect to Prosody. - Although additional configuration is possible with <option>services.jibri</option>, this is - currently not very supported and most users will only want to edit the finalize recordings - script at <option>services.jibri.finalizeScript</option>. + Additional configuration is possible with <option>services.jibri</option>, and + <option>services.jibri.finalizeScript</option> is especially useful. ''; }; @@ -409,7 +408,8 @@ in bridgeMuc = "jvbbrewery@internal.${cfg.hostName}"; config = mkMerge [{ "org.jitsi.jicofo.ALWAYS_TRUST_MODE_ENABLED" = "true"; - } (lib.mkIf cfg.jibri.enable { + #} (lib.mkIf cfg.jibri.enable { + } (lib.mkIf (config.services.jibri.enable || cfg.jibri.enable) { "org.jitsi.jicofo.jibri.BREWERY" = "JibriBrewery@internal.${cfg.hostName}"; "org.jitsi.jicofo.jibri.PENDING_TIMEOUT" = "90"; })]; |