| 14 Sep 2025 |
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 |
hustlerone | hyprland problems? | 14:00:14 |
K900 | Because Hyprland is bad | 14:00:17 |
hustlerone | you're using the flake right? | 14:00:22 |
hustlerone | yeah hyprland has poor performance when doing animations | 14:00:37 |
K900 | That is not at all what I meant | 14:00:46 |
hustlerone | if you're using the flake make sure that the nixpkgs input of it matches your system | 14:00:49 |