From e46c03e0e33578dc4db9d1cfcd81b968e4d038cf Mon Sep 17 00:00:00 2001
From: sinanmohd <sinan@firemail.cc>
Date: Sat, 5 Aug 2023 16:37:44 +0530
Subject: wayland: enable va-api gpu decoding on firefox

---
 features/wayland.nix | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/features/wayland.nix b/features/wayland.nix
index c521eb5..acdde1e 100644
--- a/features/wayland.nix
+++ b/features/wayland.nix
@@ -10,7 +10,6 @@
     qemu
     OVMFFull
     element-desktop
-    firefox
     swaylock
     swayidle
     swaybg
@@ -54,6 +53,13 @@
       enable = true;
       pinentryFlavor = "gnome3";
     };
+    firefox = {
+      enable = true;
+      preferences = {
+        "media.ffmpeg.vaapi.enabled" = true;
+        "gfx.webrender.all" = true;
+      };
+    };
   };
 
   security = {
-- 
cgit v1.2.3