🚀 Hardware acceleration

This commit is contained in:
Martin Berg Alstad 2025-01-04 23:16:07 +01:00
parent a5da3d0924
commit 08d1afd90f
Signed by: martials
GPG Key ID: A3824877B269F2E2

View File

@ -44,6 +44,7 @@
# Tells Electron apps to use Wayland # Tells Electron apps to use Wayland
NIXOS_OZONE_WL = "1"; NIXOS_OZONE_WL = "1";
NIXOS_CONFIG_PATH = "/etc/nixos"; NIXOS_CONFIG_PATH = "/etc/nixos";
LIBVA_DRIVER_NAME = "iHD"; # For hardware acceleration
}; };
fonts = { fonts = {
@ -129,7 +130,13 @@
hardware = { hardware = {
# Enable OpenGL # Enable OpenGL
graphics.enable = true; graphics = {
enable = true;
extraPackages = with pkgs; [
intel-media-driver # For Broadwell (2014) or newer processors. LIBVA_DRIVER_NAME=iHD
];
};
nvidia = { nvidia = {
# Required # Required
modesetting.enable = true; modesetting.enable = true;