Fixes gpu/mesa/opengl version mismatches on hyprland

This commit is contained in:
Emmet 2024-05-27 14:21:17 -05:00
parent 899db63096
commit 3141f4bfaa
3 changed files with 23 additions and 11 deletions

View file

@ -8,9 +8,9 @@
[ (modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "usbhid" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "usbhid" "usb_storage" "sd_mod" "radeon" ];
boot.initrd.kernelModules = [ "radeon" ];
boot.kernelModules = [ "kvm-amd" "radeon" ];
boot.extraModulePackages = with config.boot.kernelPackages; [ zenpower ];
hardware.opengl.extraPackages = [ pkgs.amdvlk ];
hardware.opengl.extraPackages32 = [ pkgs.driversi686Linux.amdvlk ];