From d5d40a1697cbd4117f1768020716e62c37781289 Mon Sep 17 00:00:00 2001 From: Sovran_SystemsOS Date: Tue, 1 Sep 2026 17:02:02 +0000 Subject: [PATCH] flake: pin LiveKit to 1.13.6 for rtc.advertise_internal_ip support rtc.advertise_internal_ip (which lets LAN callers reach the SFU via a LAN host candidate, avoiding NAT-hairpin on the router) is only honoured when node_ip is set manually from LiveKit v1.13.6 (mediatransportutil f234b53). nixpkgs-unstable currently ships 1.13.5, so pin 1.13.6 with the hashes from nixpkgs master. Remove this override once nixpkgs-unstable reaches >= 1.13.6. --- flake.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/flake.nix b/flake.nix index a7472bf..ccb3076 100644 --- a/flake.nix +++ b/flake.nix @@ -19,6 +19,24 @@ system = prev.stdenv.hostPlatform.system; config.allowUnfree = true; }; + + # Pin LiveKit to 1.13.6: element-calling.nix sets + # rtc.advertise_internal_ip, which gives LAN callers a host candidate + # so calls work on Wi-Fi without the router needing NAT-hairpin. That + # flag is only honoured when node_ip is set manually from LiveKit + # v1.13.6 (mediatransportutil f234b53); nixpkgs-unstable currently + # ships 1.13.5. Remove this override once nixpkgs-unstable reaches + # >= 1.13.6. + livekit = prev.livekit.overrideAttrs (old: { + version = "1.13.6"; + src = prev.fetchFromGitHub { + owner = "livekit"; + repo = "livekit"; + rev = "v1.13.6"; + hash = "sha256-sUAx6ooeEUUqot5xuZv7xiQa3DdRFVULteTwYgFUzCI="; + }; + vendorHash = "sha256-nOGSmoNuQQm/sIVI1HojsiS4GkbhA68uYMQ6X7d4a5Q="; + }); }; in {