From 429a4c1eef40bf68059072caf75fc55414ce0bc1 Mon Sep 17 00:00:00 2001 From: "Alexander \"PapaTutuWawa" Date: Mon, 23 Aug 2021 14:19:59 +0200 Subject: [PATCH] miku: Override mpv to prefix with DRI_PRIME --- hosts/miku.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/hosts/miku.nix b/hosts/miku.nix index cfa50a1..abff2be 100644 --- a/hosts/miku.nix +++ b/hosts/miku.nix @@ -26,6 +26,7 @@ in { # sha256 = "0r2pcc6sjxmhg1xxk23648wrwccv2c5v44cfwglx35az5y0hmr1f"; #})) + # Steam overlay (final: prev: let # NOTE: This is a really messy solution @@ -48,6 +49,16 @@ in { steamcmd = final.steamPackages.steamcmd; }) + # Simple overrides + (final: prev: { + mpv = prev.wrapMpv prev.mpv-unwrapped { + # Prevent the need for prefixing mpv with DRI_PRIME=1 + extraMakeWrapperArgs = [ + "--set" "DRI_PRIME" "1" + ]; + }; + }) + customPkgs ];