From 56734fe5da3126f24b2520a4757292f01fc2a3f6 Mon Sep 17 00:00:00 2001 From: Colin Date: Fri, 2 Feb 2024 19:18:30 +0000 Subject: [PATCH] mpv: add /dev/dri to the sandbox --- hosts/common/programs/mpv.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/hosts/common/programs/mpv.nix b/hosts/common/programs/mpv.nix index a4494b2c..c8c98a26 100644 --- a/hosts/common/programs/mpv.nix +++ b/hosts/common/programs/mpv.nix @@ -64,6 +64,7 @@ in sandbox.method = "bwrap"; sandbox.autodetectCliPaths = true; + sandbox.whitelistDri = true; #< mpv has excellent fallbacks to non-DRI, but DRI offers a good 30%-50% reduced CPU persist.byStore.plaintext = [ ".local/state/mpv/watch_later" ]; fs.".config/mpv/input.conf".symlink.text = let