programs: mpv: add .config/mpv to sandbox paths

This commit is contained in:
Colin 2024-02-12 08:17:31 +00:00
parent 8b26fa1303
commit b19492ba23

View File

@ -66,6 +66,9 @@ in
sandbox.autodetectCliPaths = true;
sandbox.net = "all";
sandbox.whitelistDri = true; #< mpv has excellent fallbacks to non-DRI, but DRI offers a good 30%-50% reduced CPU
sandbox.extraHomePaths = [
".config/mpv" #< else mpris plugin crashes on launch
];
persist.byStore.plaintext = [ ".local/state/mpv/watch_later" ];
fs.".config/mpv/input.conf".symlink.text = let