Hardware stuffies

This commit is contained in:
blahai 2025-01-12 19:18:13 +02:00
parent 63eac33d05
commit 5edcb857af
No known key found for this signature in database
9 changed files with 184 additions and 0 deletions

View file

@ -0,0 +1,24 @@
{
lib,
pkgs,
config,
...
}: let
inherit (lib.modules) mkIf;
inherit (config.olympus) device;
in {
config = mkIf (device.gpu == "amd") {
services.xserver.videoDrivers = ["amdgpu"];
boot = {
kernelModules = ["amdgpu"];
initrd.kernelModules = ["amdgpu"];
};
# enables AMDVLK & OpenCL support
hardware.graphics.extraPackages = [
pkgs.rocmPackages.clr
pkgs.rocmPackages.clr.icd
];
};
}