add gpu stuff
This commit is contained in:
parent
fcc841498a
commit
18b3e0efa4
2 changed files with 20 additions and 4 deletions
|
@ -21,6 +21,9 @@
|
||||||
|
|
||||||
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
|
# Clear /tmp during boot
|
||||||
boot.tmp.cleanOnBoot = true;
|
boot.tmp.cleanOnBoot = true;
|
||||||
|
|
||||||
|
|
|
@ -5,11 +5,24 @@
|
||||||
{
|
{
|
||||||
hardware.graphics = {
|
hardware.graphics = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
enable32Bit = true; # Recommended for legacy/32-bit support.
|
||||||
extraPackages = with pkgs; [
|
extraPackages = with pkgs; [
|
||||||
intel-media-driver # For Broadwell (2014) or newer processors. LIBVA_DRIVER_NAME=iHD
|
intel-media-driver # Intel Vulkan/media driver (Gen9+ iGPUs).
|
||||||
intel-vaapi-driver # For older processors. LIBVA_DRIVER_NAME=i965, works better for firefox/chromium?
|
intel-vaapi-driver # For older processors. LIBVA_DRIVER_NAME=i965, works better for firefox/chromium?
|
||||||
vpl-gpu-rt # For Quick Sync Video
|
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
|
environment.sessionVariables = { LIBVA_DRIVER_NAME = "iHD"; }; # Optionally, set the environment variable
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue