nix/os-mods/amdgpu/default.nix

51 lines
1.3 KiB
Nix
Raw Normal View History

{ config
, lib
, pkgs
2024-05-03 17:39:43 +02:00
, inputs
, ...
}: {
programs.corectrl = {
enable = true;
gpuOverclock.enable = true;
};
systemd.tmpfiles.rules = [
2024-05-03 17:39:43 +02:00
"L+ /opt/rocm/hip - - - - ${pkgs.rocmPackages.clr}"
"L+ /opt/rocm/rocblas - - - - ${pkgs.rocmPackages.rocblas}"
"L+ /opt/rocm/hipblas - - - - ${pkgs.rocmPackages.hipblas}"
"L+ /opt/rocm/clang - - - - ${pkgs.rocmPackages.llvm.clang}"
"L+ /opt/rocm/runtime - - - - ${pkgs.rocmPackages.rocm-runtime}"
];
2024-05-03 17:39:43 +02:00
hardware = {
2024-07-01 13:44:21 +02:00
graphics = {
2024-05-03 17:39:43 +02:00
extraPackages = with pkgs; [
2024-07-01 13:44:21 +02:00
libva-vdpau-driver
2024-05-03 17:39:43 +02:00
libvdpau-va-gl
obs-studio-plugins.obs-vaapi # TODO check if obs is enabled
gst_all_1.gstreamer
gst_all_1.gst-vaapi
];
extraPackages32 = with pkgs; [
2024-07-01 13:44:21 +02:00
driversi686Linux.libva-vdpau-driver
2024-05-03 17:39:43 +02:00
driversi686Linux.libvdpau-va-gl
];
};
};
2023-12-11 01:02:18 +01:00
# Force radv
environment.variables.AMD_VULKAN_ICD = "RADV";
2024-02-02 16:13:55 +01:00
environment.systemPackages = with pkgs; [
2024-04-11 17:48:21 +02:00
## MONITORING TOOLS ##
nvtopPackages.amd # for AMD GPUs
vulkan-tools
libva-utils
2024-02-27 17:58:25 +01:00
glxinfo # TODO right place here or in desktop ?
2024-03-01 02:20:12 +01:00
clinfo
wayland-utils # TODO move somewhere better ?
# nixgl.nixGLIntel
# nixgl.nixVulkanIntel
];
}