DaVinci Resolve: Difference between revisions

BENDI (talk | contribs)
Added a section describing how to use OpenFX Plugins with DaVinci Resolve. It is worth noting that I am not aware of how many OpenFX Plugins are packaged in nixpkgs, as I am using this feature with plugins installed via a flake.
m Changed hardware.opengl to hardware.graphics in Unsupported GPU Processing Mode, because i got a evaluation warning when building nix
 
(2 intermediate revisions by one other user not shown)
Line 52: Line 52:




'''Here is a confirmed minimal system configuration for amdgpu, radeonsi and OpenCL via Mesa (Rusticl):'''<syntaxhighlight lang="nix">
'''Here is a confirmed minimal configuration for amdgpu, radeonsi and OpenCL via Mesa (Rusticl):'''<syntaxhighlight lang="nix">{
{ config, lib, pkgs, ... }:
  config,
  lib,
  pkgs,
  ...
}:
{
{
   imports = [ ./hardware-configuration.nix];
   environment.systemPackages = with pkgs; [
  boot.loader.systemd-boot.enable = true;
    davinci-resolve
  boot.loader.efi.canTouchEfiVariables = true;
   ];
  boot.kernelPackages=pkgs.linuxPackages_latest;
   environment.variables = {
  boot.initrd.kernelModules=["amdgpu"];
    RUSTICL_ENABLE = "radeonsi";
  nixpkgs.config.allowUnfree = true;
  networking.hostName = "davinci-test";
   networking.networkmanager.enable = true;  
   time.timeZone = "Europe/Amsterdam";
  services.pipewire = {
    enable = true;
    pulse.enable = true;
   };
   };
  environment.systemPackages = with pkgs; [
  hardware.graphics = {
kitty
    enable = true;
mesa-demos
    extraPackages = with pkgs; [
vulkan-tools
      mesa.opencl # Enables Rusticl (OpenCL) support
clinfo
    ];
  davinci-resolve
  };
  ];
}</syntaxhighlight>
  programs.hyprland.enable=true;
  services.dbus.enable=true;
  services.xserver.videoDrivers =["amdgpu"];
  environment.variables={
RUSTICL_ENABLE="radeonsi";
ROC_ENABLE_PRE_VEGA = "1";
  };
hardware.graphics = {
  enable = true;
  extraPackages = with pkgs; [
    mesa
    libva
    libvdpau-va-gl
    vulkan-loader
    vulkan-validation-layers
    amdvlk  # Optional: AMD's proprietary Vulkan driver
    mesa.opencl # Enables Rusticl (OpenCL) support
  ];
};
  system.stateVersion = "24.11";
}
</syntaxhighlight>


=== Intel ===
=== Intel ===
Line 151: Line 126:
If DaVinci Resolve shows a popup asking to review GPU configuration in preferences, and if there is no GPU detected in "Memory and GPU" in preferences, you can try the following in your <code>configuration.nix</code>:
If DaVinci Resolve shows a popup asking to review GPU configuration in preferences, and if there is no GPU detected in "Memory and GPU" in preferences, you can try the following in your <code>configuration.nix</code>:


<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">hardware.graphics = {
hardware.opengl = {
   enable = true;
   enable = true;
   extraPackages = with pkgs; [
   extraPackages = with pkgs; [
     rocmPackages.clr.icd
     rocmPackages.clr.icd
   ];
   ];
  };
  };</syntaxhighlight>
</syntaxhighlight>


[[Category:Applications]]
[[Category:Applications]]