alpha
Login
or
Join now
seanaye.bsky.social
/
nixos-config
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
me like nix
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
update kodi config
author
Sean Aye
date
3 months ago
(Mar 22, 2026, 8:03 PM -0400)
commit
e9e698dc
e9e698dcbad26d8cfb0b75a3ab13bb120a9b3f22
parent
ef7a8990
ef7a89903bc484f13038bc8ad606e6b85218896b
change-id
ptnooono
ptnooonozutznolwuvnpoklllupntukk
+18
-4
1 changed file
Expand all
Collapse all
Unified
Split
hosts
kodi-pi
configuration.nix
+18
-4
hosts/kodi-pi/configuration.nix
Reviewed
···
2
2
3
3
let
4
4
# Patch Invidious addon to prepend instance URL to relative stream/dash URLs
5
5
-
patchedInvidious = pkgs.kodiPackages.invidious.overrideAttrs (old: {
5
5
+
# and pass local=true to API so Invidious proxies video streams
6
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
15
+
substituteInPlace resources/lib/invidious_api.py \
16
16
+
--replace-fail \
17
17
+
'response = self.make_get_request("videos/", video_id)' \
18
18
+
'response = self.make_get_request("videos/", video_id, local="true")'
14
19
'';
15
20
});
16
21
17
17
-
myKodi = pkgs.kodi-gbm.withPackages (kodiPkgs: with kodiPkgs; [
18
18
-
jellyfin
19
19
-
patchedInvidious
22
22
+
myKodi = pkgs.kodi-gbm.withPackages (kodiPkgs: [
23
23
+
kodiPkgs.jellyfin
24
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
84
+
85
85
+
# Enable web remote control interface (port 8080)
86
86
+
GUISETTINGS=/home/kodi/.kodi/userdata/guisettings.xml
87
87
+
if [ -f "$GUISETTINGS" ]; then
88
88
+
${pkgs.gnused}/bin/sed -i \
89
89
+
-e 's|"services.webserver"[^>]*>[^<]*<|"services.webserver">true<|' \
90
90
+
-e 's|"services.webserverauthentication"[^>]*>[^<]*<|"services.webserverauthentication">false<|' \
91
91
+
"$GUISETTINGS"
92
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