Maaaybe a stupid question as it might just be the same thing done differently. I'm not bright enough to understand the differences.
hardware.graphics
was recently introduced which replaced hardware.opengl
. Now, I've got my amdvlk
, libva
and such configured via hardware.graphics
— recently I came across hardware.amdgpu
which offers a bunch of options.
Should one combine, use one or the other, or does it make any difference at all?
hardware.amdgpu.opencl.enable
hardware.amdgpu.legacySupport.enable
hardware.amdgpu.initrd.enable
hardware.amdgpu.amdvlk.supportExperimental.enable
hardware.amdgpu.amdvlk.support32Bit.package
hardware.amdgpu.amdvlk.support32Bit.enable
hardware.amdgpu.amdvlk.settings
hardware.amdgpu.amdvlk.package
hardware.amdgpu.amdvlk.enable
hardware.graphics.extraPackages32
hardware.graphics.extraPackages
hardware.graphics.enable32Bit
hardware.graphics.enable
That is, are these two examples the same for all intents and purposes or do either bring anything else?
hardware.amdgpu.amdvlk = {
enable = true;
support32Bit.enable = true;
};
# VS.
hardware.graphics = {
enable = true;
enable32Bit = true;
extraPackages = with pkgs; [
amdvlk
];
extraPackages32 = with pkgs; [
driversi686Linux.amdvlk
];
};
https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/amdvlk.nix#L13
Interesting, the option hardware.amdgpu.amdvlk.support32Bit.enable is there, but does not seem to be used anywhere.
Line 37 no? Kind of baked into hardware.graphics.extraPackages32? https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/hardware/amdvlk.nix#L37