| 14 Sep 2025 |
Linux DADDY | [nix-shell:~]$ vkcube
Selected WSI platform: xcb
Selected GPU 0: AMD Radeon Vega 8 Graphics (RADV RAVEN), type: IntegratedGpu
| 11:32:29 |
Linux DADDY | Here is my GPU config if you want to check or someone.
{
pkgs,
lib,
...
}: {
boot.kernelParams = [
"amd_pstate=guided" # Better power management for Zen 2+
"iommu=pt" # Improves performance with IOMMU
];
hardware.amdgpu = {
amdvlk = {
enable = true;
support32Bit.enable = true;
};
opencl.enable = true;
};
hardware.graphics = {
enable = true;
enable32Bit = true;
extraPackages = with pkgs; [
# Video acceleration
vaapiVdpau
libvdpau-va-gl
# Vulkan tools (for debugging/testing)
vulkan-validation-layers
vulkan-tools
# OpenCL
rocmPackages.clr.icd
];
extraPackages32 = with pkgs.pkgsi686Linux; [
# Only the essentials for 32-bit
mesa
];
};
environment.variables = {
# Video acceleration
VDPAU_DRIVER = "radeonsi";
LIBVA_DRIVER_NAME = "radeonsi";
# Optional: Set default Vulkan driver
# Remove this to let apps auto-select between RADV and AMDVLK
# AMD_VULKAN_ICD = "RADV";
};
services.xserver.videoDrivers = lib.mkDefault ["amdgpu" "modesetting"];
powerManagement.cpuFreqGovernor = lib.mkDefault "schedutil";
hardware.enableRedistributableFirmware = true;
hardware.cpu.amd.updateMicrocode = true;
}
| 11:34:19 |
Linux DADDY | * [nix-shell:~]$ vkcube
Selected WSI platform: xcb
Selected GPU 0: AMD Radeon Vega 8 Graphics (RADV RAVEN), type: IntegratedGpu
| 11:34:25 |
Marie | why are you enabling amdvlk? | 11:39:55 |
Linux DADDY | Is it bad? Some from discord asked me why not i was not using amdvlk? So i ended up enabling it. | 11:41:34 |
Linux DADDY | Even though i have vega 8 with ryzen 5 2500u, old laptop. | 11:41:50 |
Linux DADDY | * Is it bad? Someone from discord asked me why not i was not using amdvlk? So i ended up enabling it. | 11:42:52 |
Marie | yes, you want mesa's radv unless you have a very specific edge case | 11:44:51 |
Linux DADDY | So should i remove amdvlk? I actually have amd.nix.bak with different config here.
{
pkgs,
lib,
...
}: {
boot.kernelParams = [
"amd_pstate=guided" # Better power management for Zen 2+
"amdgpu"
"iommu=pt" # Improves performance with IOMMU
];
hardware.amdgpu = {
amdvlk = {
enable = false; # Prefer RADV over AMDVLK
support32Bit.enable = false;
};
opencl = {
enable = true; # Enable OpenCL support
};
};
hardware.graphics = {
enable = true;
enable32Bit = true;
extraPackages = with pkgs; [
# Video acceleration
vaapiVdpau
libvdpau-va-gl
# Mesa drivers
mesa
# Vulkan
vulkan-loader
vulkan-validation-layers
vulkan-tools
# Additional AMD tools (optional but useful)
rocmPackages.clr.icd # Better OpenCL support
];
extraPackages32 = with pkgs.pkgsi686Linux; [
mesa
vulkan-loader
vulkan-validation-layers
vulkan-tools
];
};
environment.variables = {
# Video acceleration
VDPAU_DRIVER = "radeonsi";
LIBVA_DRIVER_NAME = "radeonsi";
# Prefer RADV (Mesa) Vulkan driver
AMD_VULKAN_ICD = "RADV";
# Let the Vulkan loader auto-detect ICDs from the directory
# This handles both 32-bit and 64-bit automatically
VK_ICD_FILENAMES = "/run/opengl-driver/share/vulkan/icd.d/";
# Optional: Force high performance mode (uncomment if needed)
# AMD_VULKAN_PERFORMANCE_MODE = "high";
};
services.xserver.videoDrivers = lib.mkDefault ["amdgpu" "modesetting"];
# AMD-specific power management (optional but recommended)
powerManagement.cpuFreqGovernor = lib.mkDefault "schedutil";
hardware.enableRedistributableFirmware = true;
hardware.cpu.amd.updateMicrocode = true;
}
| 11:47:43 |
K900 | Literally all you need is hardware.graphics.enable = true | 11:51:58 |
K900 | Get rid of all of that other shit | 11:52:08 |
Linux DADDY | just 1 line here? | 11:53:26 |
Linux DADDY | you serious!!? | 11:53:28 |
K900 | Yes | 11:53:32 |
K900 | And stop copy-pasting random shit you don't understand | 11:53:41 |
| lassulus joined the room. | 11:57:37 |
Sandro 🐧 | What do I need to tell lutris, so that it loads the nvidia drivers correctly?
The NVIDIA driver was unable to open 'libnvidia-glvkspirv.so.570.181'. This library is required at run time.
The file exists under /run/opengl something something but I assume all the sandboxing somewhere throws it away or shadows it
| 13:25:09 |
K900 | Might need rpath things somewhere? | 13:27:57 |
Linux DADDY | So what would be wrong if i still enable these lines? And yes I'm noob here for understanding gpu drivers. | 13:28:08 |
K900 | Who knows, honestly | 13:28:20 |
K900 | I can't predict every failure mode | 13:28:24 |
Linux DADDY | Interesting. Okay i would try. | 13:32:25 |
Linux DADDY | Now i can, well i enabled that option and my hyprland didn't even boot.
So basically i need some more options to operate my config. | 13:51:02 |
K900 | Are you using Hyprland from the flake? | 13:51:17 |
K900 | That may cause problems | 13:51:22 |
K900 | I would also just generally try anything but Hyprland | 13:51:30 |
K900 | Because Hyprland has some very interesting issues | 13:51:38 |
Linux DADDY | No i am using it from nixos stable repo. | 13:59:43 |
Linux DADDY | Even though i do have hyprland flakes repo added which does not install hyprland itself. | 13:59:57 |
K900 | Honestly please just try not Hyrpland | 14:00:14 |