kernel: add standalone amdgpu kernel module package

This commit is contained in:
Leonardo Eugênio 2023-02-21 00:29:28 -03:00
parent 2006674aee
commit 80d814c9bf
6 changed files with 46 additions and 12 deletions

View file

@ -29,7 +29,13 @@ in
# hardware.opengl.extraPackages32 = with pkgs; [ driversi686Linux.amdvlk ];
# environment.variables = { AMD_VULKAN_ICD = "RADV"; };
boot.extraModulePackages = [ ];
boot.extraModulePackages = [
((pkgs.amdgpu-kernel-module.override {
kernel = config.boot.kernelPackages.kernel;
}).overrideAttrs (_: {
patches = [ ../patches/kernel/amdgpu-disable-shutdown-on-overheating.diff ];
}))
];
fileSystems."/" = {
device = "/dev/disk/by-label/BTRFS_ROOT";
fsType = "btrfs";