Add some AMD GPU stuff

This commit is contained in:
Pedro Rey Anca 2025-06-09 12:00:31 +02:00
parent 7b01c5444a
commit caa0ae4fe2
Signed by: peprolinbot
GPG key ID: 053EA6E00116533A

View file

@ -16,12 +16,15 @@
boot.loader.efi.efiSysMountPoint = "/boot/efi"; boot.loader.efi.efiSysMountPoint = "/boot/efi";
# https://nixos.wiki/wiki/AMD_GPU
boot.initrd.kernelModules = ["amdgpu"]; boot.initrd.kernelModules = ["amdgpu"];
services.xserver.videoDrivers = ["amdgpu"]; services.xserver.videoDrivers = ["amdgpu"];
hardware.graphics.extraPackages = with pkgs; [ hardware.graphics.extraPackages = with pkgs; [
rocmPackages.clr.icd rocmPackages.clr.icd
amdvlk amdvlk
driversi686Linux.amdvlk
]; ];
hardware.graphics.enable32Bit = true; # For 32 bit applications
# It is an open-source implementation of Nvidias Moonlight game streaming application # It is an open-source implementation of Nvidias Moonlight game streaming application
services.sunshine = { services.sunshine = {