me like nix
0

Configure Feed

Select the types of activity you want to include in your feed.

update kodi config

author
Sean Aye
date (Mar 22, 2026, 8:03 PM -0400) commit e9e698dc parent ef7a8990 change-id ptnooono
+18 -4
+18 -4
hosts/kodi-pi/configuration.nix
··· 2 2 3 3 let 4 4 # Patch Invidious addon to prepend instance URL to relative stream/dash URLs 5 - patchedInvidious = pkgs.kodiPackages.invidious.overrideAttrs (old: { 5 + # and pass local=true to API so Invidious proxies video streams 6 + patchInvidious = drv: drv.overrideAttrs (old: { 6 7 postPatch = (old.postPatch or "") + '' 7 8 substituteInPlace resources/lib/invidious_plugin.py \ 8 9 --replace-fail \ ··· 11 12 --replace-fail \ 12 13 'url = video_info["formatStreams"][-1]["url"]' \ 13 14 'url = video_info["formatStreams"][-1]["url"]; url = self.api_client.instance_url + url if url.startswith("/") else url' 15 + substituteInPlace resources/lib/invidious_api.py \ 16 + --replace-fail \ 17 + 'response = self.make_get_request("videos/", video_id)' \ 18 + 'response = self.make_get_request("videos/", video_id, local="true")' 14 19 ''; 15 20 }); 16 21 17 - myKodi = pkgs.kodi-gbm.withPackages (kodiPkgs: with kodiPkgs; [ 18 - jellyfin 19 - patchedInvidious 22 + myKodi = pkgs.kodi-gbm.withPackages (kodiPkgs: [ 23 + kodiPkgs.jellyfin 24 + (patchInvidious kodiPkgs.invidious) 20 25 ]); 21 26 22 27 kodiAdvancedSettings = pkgs.writeText "advancedsettings.xml" '' ··· 76 81 ExecStartPre = pkgs.writeShellScript "kodi-setup" '' 77 82 mkdir -p /home/kodi/.kodi/userdata 78 83 cp -f ${kodiAdvancedSettings} /home/kodi/.kodi/userdata/advancedsettings.xml 84 + 85 + # Enable web remote control interface (port 8080) 86 + GUISETTINGS=/home/kodi/.kodi/userdata/guisettings.xml 87 + if [ -f "$GUISETTINGS" ]; then 88 + ${pkgs.gnused}/bin/sed -i \ 89 + -e 's|"services.webserver"[^>]*>[^<]*<|"services.webserver">true<|' \ 90 + -e 's|"services.webserverauthentication"[^>]*>[^<]*<|"services.webserverauthentication">false<|' \ 91 + "$GUISETTINGS" 92 + fi 79 93 80 94 # Patch Jellyfin addon settings (Pi 5 has HW HEVC decoder, no need to transcode) 81 95 JFSETTINGS=/home/kodi/.kodi/userdata/addon_data/plugin.video.jellyfin/settings.xml