Skip to content

Commit

Permalink
enable amdgpu
Browse files Browse the repository at this point in the history
  • Loading branch information
AtaraxiaSjel committed Nov 18, 2024
1 parent 52a1ee8 commit d6b3d75
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions profiles/hardware.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ with config.deviceSpecific; {
] else [ ];
};

hardware.amdgpu = lib.mkIf (devInfo.gpu.vendor == "amd") {
opencl.enable = true;
initrd.enable = config.boot.initrd.systemd.enable;
};

environment.sessionVariables = if (devInfo.gpu.vendor == "intel") then {
GST_VAAPI_ALL_DRIVERS = "1";
LIBVA_DRIVER_NAME = "iHD";
Expand Down

0 comments on commit d6b3d75

Please sign in to comment.