home,nixos: add hw to firefox

This commit is contained in:
genofire 2021-11-26 18:31:47 +01:00
parent a126559750
commit 01b7e061fc
2 changed files with 14 additions and 1 deletions

View File

@ -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; [

12
nixos/hw-intel.nix Normal file
View File

@ -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
];
};
}