- Install Node.js 18+ from https://nodejs.org/en/download or your distribution package manager
- Download and install Nix package manager.
- Enable
nix-commandandflakesin~/.config/nix/nix.confviaextra-experimental-features = nix-command flakes - Install livekit by running:
nix profile add \
nixpkgs#livekit \
nixpkgs#livekit-cli \
nixpkgs#livekit-ingress \
nixpkgs#livekit-libwebrtc- Install Node.js dependencies with
npm install - Copy
.env.exampleto.env, then provide your LiveKit credentials and the external token server URL (seemission-control-remotefor a reference implementation)
Note: Nix is a package manager, while NixOS is a Linux distro using it. Just to avoid confusion. It is also possible to install as a non-root user.
Note: Please use real host device ip instead of vscode port forwards for WebRTC to work.