add gpu stuff

This commit is contained in:
Elias Gasparis 2025-06-19 08:12:06 +08:00
parent fcc841498a
commit 18b3e0efa4
2 changed files with 20 additions and 4 deletions

View file

@ -19,7 +19,10 @@
boot.loader.efi.canTouchEfiVariables = true;
boot.loader.grub.configurationLimit = 10;
boot.initrd.luks.devices."luks-886090f3-1ba1-4134-9734-5b922106820d".device = "/dev/disk/by-uuid/886090f3-1ba1-4134-9734-5b922106820d";
boot.initrd.luks.devices."luks-886090f3-1ba1-4134-9734-5b922106820d".device = "/dev/disk/by-uuid/886090f3-1ba1-4134-9734-5b922106820d";
# Let the system detect and handle plugged-in hardware
services.udev.enable = true;
# Clear /tmp during boot
boot.tmp.cleanOnBoot = true;

View file

@ -5,11 +5,24 @@
{
hardware.graphics = {
enable = true;
enable32Bit = true; # Recommended for legacy/32-bit support.
extraPackages = with pkgs; [
intel-media-driver # For Broadwell (2014) or newer processors. LIBVA_DRIVER_NAME=iHD
intel-vaapi-driver # For older processors. LIBVA_DRIVER_NAME=i965, works better for firefox/chromium?
vpl-gpu-rt # For Quick Sync Video
intel-media-driver # Intel Vulkan/media driver (Gen9+ iGPUs).
intel-vaapi-driver # For older processors. LIBVA_DRIVER_NAME=i965, works better for firefox/chromium?
vpl-gpu-rt # For Quick Sync Video
vulkan-loader # Core Vulkan runtime.
vulkan-tools # Diagnostic tools (for example, `vulkaninfo`).
mesa # Open-source Vulkan drivers (RADV for AMD, ANV for Intel).
amdvlk # AMD's official Vulkan driver (alternative to RADV).
];
};
hardware.graphics.extraPackages32 = with pkgs.pkgsi686Linux; [
vulkan-loader # Vulkan runtime (32-bit).
driversi686Linux.mesa # 32-bit Vulkan drivers for AMD/Intel.
driversi686Linux.intel-media-driver # Intel 32-bit media driver.
driversi686Linux.amdvlk # 32-bit support for AMD's official Vulkan driver.
];
environment.sessionVariables = { LIBVA_DRIVER_NAME = "iHD"; }; # Optionally, set the environment variable
}