1
Fork 0

hyprland: Add nvidia-vaapi-driver

This commit is contained in:
caem 2024-07-21 22:47:19 +02:00
parent a98076de23
commit 9b6fba74d0
Signed by: caem
GPG key ID: 69A830D03203405F
3 changed files with 9 additions and 0 deletions

View file

@ -42,6 +42,7 @@
boot.extraModprobeConfig = "options kvm_amd nested=1"; boot.extraModprobeConfig = "options kvm_amd nested=1";
boot.kernelParams = [ boot.kernelParams = [
"nvidia_drm.fbdev=1" "nvidia_drm.fbdev=1"
"nvidia.NVreg_PreserveVideoMemoryAllocations=1"
]; ];
boot.initrd.postDeviceCommands = lib.mkAfter '' boot.initrd.postDeviceCommands = lib.mkAfter ''

View file

@ -12,6 +12,7 @@
wl-clipboard wl-clipboard
gnome.nautilus gnome.nautilus
pavucontrol pavucontrol
nvidia-vaapi-driver
]; ];
environment.sessionVariables = { environment.sessionVariables = {
@ -19,6 +20,8 @@
XDG_SESSION_TYPE = "wayland"; XDG_SESSION_TYPE = "wayland";
GBM_BACKEND = "nvidia-drm"; GBM_BACKEND = "nvidia-drm";
__GLX_VENDOR_LIBRARY_NAME = "nvidia"; __GLX_VENDOR_LIBRARY_NAME = "nvidia";
NVD_BACKEND = "direct";
MOZ_DISABLE_RDD_SANDBOX = 1;
NIXOS_OZONE_WL = 1; NIXOS_OZONE_WL = 1;
}; };

View file

@ -313,6 +313,11 @@
"browser.newtabpage.activity-stream.improvesearch.topSiteSearchShortcuts.havePinned" = ""; "browser.newtabpage.activity-stream.improvesearch.topSiteSearchShortcuts.havePinned" = "";
"browser.newtabpage.activity-stream.improvesearch.topSiteSearchShortcuts.searchEngines" = ""; "browser.newtabpage.activity-stream.improvesearch.topSiteSearchShortcuts.searchEngines" = "";
# https://github.com/elFarto/nvidia-vaapi-driver?tab=readme-ov-file#firefox
"media.ffmpeg.vaapi.enabled" = true;
"media.rdd-ffmpeg.enabled" = true;
"media.av1.enabled" = false;
# Options for the firefox-ui-fix using Photon # Options for the firefox-ui-fix using Photon
# https://github.com/black7375/Firefox-UI-Fix/blob/master/user.js # https://github.com/black7375/Firefox-UI-Fix/blob/master/user.js
"userChrome.tab.connect_to_window" = true; "userChrome.tab.connect_to_window" = true;