mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-13 12:13:36 +01:00
fix(nixpak): let mpv use host /tmp for musicfox IPC
Assisted-by: DeepSeek Harness (deepseek-flash)
This commit is contained in:
1 parent
a69ef122dc
commit
c796643066
1 file changed
+4
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user