From 01b7e061fc3335bb5a8e475023b2c06ae270df90 Mon Sep 17 00:00:00 2001 From: genofire Date: Fri, 26 Nov 2021 18:31:47 +0100 Subject: [PATCH] home,nixos: add hw to firefox --- home/sway.nix | 3 ++- nixos/hw-intel.nix | 12 ++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 nixos/hw-intel.nix diff --git a/home/sway.nix b/home/sway.nix index f1441ef..5f48039 100644 --- a/home/sway.nix +++ b/home/sway.nix @@ -34,7 +34,8 @@ in config = { home.sessionVariables = { XDG_CURRENT_DESKTOP = "sway"; - MOZ_ENABLE_WAYLAND = "1"; + MOZ_ENABLE_WAYLAND = 1; + MOZ_WEBRENDER = 1; }; home.packages = with pkgs; [ diff --git a/nixos/hw-intel.nix b/nixos/hw-intel.nix new file mode 100644 index 0000000..61135c5 --- /dev/null +++ b/nixos/hw-intel.nix @@ -0,0 +1,12 @@ +{pkgs, ...}: +{ + hardware.opengl = { + enable = true; + extraPackages = with pkgs; [ + intel-media-driver # LIBVA_DRIVER_NAME=iHD + # vaapiIntel # LIBVA_DRIVER_NAME=i965 (older but works better for Firefox/Chromium) + vaapiVdpau + libvdpau-va-gl + ]; + }; +}