feat(gui): add support for Intel media driver and Wayland tweaks

Enabled Intel media driver support and set environment variables for better compatibility with Wayland. Also updated MPV configuration for hardware decoding and GPU settings.
This commit is contained in:
Harald Hoyer 2024-09-17 10:13:07 +02:00
parent 66ed38df82
commit f4c89c2adf

View file

@ -59,12 +59,26 @@ in
sound.enable = true;
hardware.pulseaudio.enable = false;
hardware.opengl = {
enable = true;
extraPackages = with pkgs; [
onevpl-intel-gpu
intel-compute-runtime
];
enable = true;
extraPackages = with pkgs; [
onevpl-intel-gpu
intel-compute-runtime
intel-media-driver # LIBVA_DRIVER_NAME=iHD
#intel-vaapi-driver # LIBVA_DRIVER_NAME=i965 (older but works better for Firefox/Chromium)
libvdpau-va-gl
];
};
environment.sessionVariables = {
LIBVA_DRIVER_NAME = "iHD";
NIXOS_OZONE_WL = "1";
}; # Force intel-media-driver
metacfg.home.configFile."mpv/mpv.conf".text = ''
hwdec=auto-safe
vo=gpu
profile=gpu-hq
gpu-context=wayland
'';
security.rtkit.enable = true;
@ -123,8 +137,6 @@ in
zellij
];
environment.sessionVariables.NIXOS_OZONE_WL = "1";
#----=[ Fonts ]=----#
fonts = {
enableDefaultPackages = false;