amd gpu support

This commit is contained in:
Rachel Lambda Samuelsson 2024-11-04 14:14:28 +01:00 committed by depsterr
parent 6b56249b3d
commit 0770ec8ff4

View File

@ -10,8 +10,18 @@
enable = true;
driSupport = true;
driSupport32Bit = true;
extraPackages = [
pkgs.rocmPackages.clr.icd
];
};
# amd gpu
boot.initrd.kernelModules = [ "amdgpu" ];
services.xserver.videoDrivers = [ "amdgpu" ];
systemd.tmpfiles.rules = [
"L+ /opt/rocm/hip - - - - ${pkgs.rocmPackages.clr}"
];
# [BOOT]
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;