fix(nixpak): let mpv use host /tmp for musicfox IPC

Assisted-by: DeepSeek Harness (deepseek-flash)
This commit is contained in:
Ryan Yin committed 2026-11-06 10:36:20 +08:00
1 parent a69ef122dc
commit c796643066
1 file changed
+4 -1
+4 -1
View File
@@ -1,6 +1,7 @@
# mpv policy: media directories are read-only, playback state and user config
# remain writable, and MPRIS is the only desktop service it owns.
{
lib,
sloth,
...
}:
@@ -17,10 +18,12 @@
desktopIntegration.mpris = true;
bubblewrap = {
sockets.pulse = true;
bind.rw = [
bind.rw = lib.mkAfter [
(sloth.mkdir (sloth.concat' sloth.homeDir "/.config/mpv"))
(sloth.mkdir (sloth.concat' sloth.homeDir "/.cache/mpv"))
(sloth.mkdir (sloth.concat' sloth.homeDir "/.local/state/mpv"))
# musicfox dials the hardcoded host /tmp/mpvsocket, so /tmp must be the host's (last bind wins).
"/tmp"
];
bind.ro = [
sloth.xdgDocumentsDir