!hzgkCxLtCOTmFXGauj:nixos.org

NixOS Gaming

409 Members
Gaming things, my hands are typing words.113 Servers

Load older messages


SenderMessageTime
14 Sep 2025
@linux-daddy:beeper.comLinux 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:marie.cologneMarie yes, you want mesa's radv unless you have a very specific edge case 11:44:51
@linux-daddy:beeper.comLinux 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:0upti.meK900 Literally all you need is hardware.graphics.enable = true 11:51:58
@k900:0upti.meK900Get rid of all of that other shit11:52:08
@linux-daddy:beeper.comLinux DADDYjust 1 line here?11:53:26
@linux-daddy:beeper.comLinux DADDYyou serious!!?11:53:28
@k900:0upti.meK900Yes11:53:32
@k900:0upti.meK900And stop copy-pasting random shit you don't understand11:53:41
@lassulus:lassul.uslassulus joined the room.11:57:37
@sandro:supersandro.deSandro 🐧

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:0upti.meK900Might need rpath things somewhere?13:27:57
@linux-daddy:beeper.comLinux DADDYSo what would be wrong if i still enable these lines? And yes I'm noob here for understanding gpu drivers.13:28:08
@k900:0upti.meK900Who knows, honestly13:28:20
@k900:0upti.meK900I can't predict every failure mode13:28:24
@linux-daddy:beeper.comLinux DADDYInteresting. Okay i would try.13:32:25
@linux-daddy:beeper.comLinux 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:0upti.meK900Are you using Hyprland from the flake?13:51:17
@k900:0upti.meK900That may cause problems13:51:22
@k900:0upti.meK900I would also just generally try anything but Hyprland13:51:30
@k900:0upti.meK900Because Hyprland has some very interesting issues13:51:38
@linux-daddy:beeper.comLinux DADDYNo i am using it from nixos stable repo.13:59:43
@linux-daddy:beeper.comLinux DADDYEven though i do have hyprland flakes repo added which does not install hyprland itself.13:59:57
@k900:0upti.meK900Honestly please just try not Hyrpland14:00:14
@hustlerone:matrix.orghustleronehyprland problems?14:00:14
@k900:0upti.meK900Because Hyprland is bad14:00:17
@hustlerone:matrix.orghustleroneyou're using the flake right?14:00:22
@hustlerone:matrix.orghustleroneyeah hyprland has poor performance when doing animations14:00:37
@k900:0upti.meK900That is not at all what I meant14:00:46
@hustlerone:matrix.orghustleroneif you're using the flake make sure that the nixpkgs input of it matches your system14:00:49

Show newer messages


Back to Room ListRoom Version: 10