Files
nix/hosts/battleship/gpu-configuration.nix

38 lines
820 B
Nix
Raw Permalink Normal View History

{pkgs, ...}: {
2024-04-08 16:37:51 -03:00
imports = [];
2024-02-21 18:50:31 -03:00
2025-04-02 14:40:46 -03:00
boot.kernelModules = ["amdgpu"];
boot.initrd.kernelModules = ["amdgpu"];
# services.xserver.enable = true;
services.xserver.videoDrivers = ["amdgpu"];
2024-02-21 18:50:31 -03:00
# Configuration for davinci resolve based on
# https://wiki.nixos.org/wiki/DaVinci_Resolve
environment.variables = {
RUSTICL_ENABLE = "radeonsi";
ROC_ENABLE_PRE_VEGA = "1";
2024-02-21 18:50:31 -03:00
};
environment.systemPackages = with pkgs; [
mesa-demos
vulkan-tools
clinfo
];
hardware.graphics.enable = true;
2025-04-02 14:40:46 -03:00
hardware.graphics.enable32Bit = true;
hardware.graphics.extraPackages = with pkgs; [
mesa
libva
libvdpau-va-gl
vulkan-loader
vulkan-validation-layers
mesa.opencl
2025-06-06 10:43:39 -03:00
];
systemd.tmpfiles.rules = [
"L+ /opt/rocm/hip - - - - ${pkgs.rocmPackages.clr}"
];
2024-02-21 18:50:31 -03:00
}