Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

non-critical-infra: init jitsi #404

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions non-critical-infra/hosts/caliban.nixos.org/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
../../modules/first-time-contribution-tagger.nix
../../modules/backup.nix
../../modules/vaultwarden.nix
../../modules/jitsi.nix
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please keep this sorted.

Copy link
Contributor

@delroth delroth Apr 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, looks like it's already not. Bleh.

So instead: can you sort this? :P (the ../../modules/* entries)

];

# Bootloader.
Expand Down
59 changes: 59 additions & 0 deletions non-critical-infra/modules/jitsi.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{ pkgs, ... }:
{
services.jitsi-meet = {
enable = true;
hostName = "jitsi.nixos.org";
config = {
enableWelcomePage = true;
requireDisplayName = true;
analytics.disabled = true;
startAudioOnly = true;
channelLastN = 4;
lobby = {
autoKnock = true;
enableChat = false;
};
stunServers = [
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be p2p.stunServers according to the documentation and code.

An alternative to using (and depending on) the matrix.org TURN server would be to disable the p2p calls for two person calls completely with p2p.enabled = false. One could argue this is a bit more privacy friendly, since this way you never expose your IP to the other person on the call.

{ urls = "turn:turn.matrix.org:3478?transport=udp"; }
{ urls = "turn:turn.matrix.org:3478?transport=tcp"; }
];
constraints.video.height = {
ideal = 720;
max = 1080;
min = 240;
};
remoteVideoMenu.disabled = false;
breakoutRooms.hideAddRoomButton = false;
maxFullResolutionParticipants = 1;
};
updateMucs = {
"conference.jitsi.nixos.org".extraModules = [
"muc_mam"
"vcard_muc"
"lobby_autostart"
"secure_domain_lobby_bypass"
];
};

interfaceConfig = {
SHOW_JITSI_WATERMARK = false;
SHOW_WATERMARK_FOR_GUESTS = false;
GENERATE_ROOMNAMES_ON_WELCOME_PAGE = false;
DISABLE_PRESENCE_STATUS = true;
};
secureDomain.enable = true;
};

services.prosody.extraPluginPaths = [
"${pkgs.jitsi-prosody-plugins}/lobby_autostart"
"${pkgs.jitsi-prosody-plugins}/secure_domain_lobby_bypass"
];

services.prosody.extraModules = [ "muc_lobby_rooms" "persistent_lobby" "lobby_autostart" ];
services.prosody.virtualHosts."jitsi.nixos.org".extraConfig = ''
modules_enabled = {
"muc_lobby_rooms";
"persistent_lobby";
}
'';
}
Loading