DaVinci Resolve: Difference between revisions

Marie (talk | contribs)
m Reformat example code with nixfmt
Marie (talk | contribs)
Make minimal example actually minimal
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,
   config,
   lib,
   lib,
Line 59: Line 59:
}:
}:
{
{
  imports = [ ./hardware-configuration.nix ];
  boot.loader.systemd-boot.enable = true;
  boot.loader.efi.canTouchEfiVariables = true;
  boot.kernelPackages = pkgs.linuxPackages_latest;
  boot.initrd.kernelModules = [ "amdgpu" ];
  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; [
   environment.systemPackages = with pkgs; [
    kitty
    mesa-demos
    vulkan-tools
    clinfo
     davinci-resolve
     davinci-resolve
   ];
   ];
  programs.hyprland.enable = true;
  services.dbus.enable = true;
  services.xserver.videoDrivers = [ "amdgpu" ];
   environment.variables = {
   environment.variables = {
     RUSTICL_ENABLE = "radeonsi";
     RUSTICL_ENABLE = "radeonsi";
    ROC_ENABLE_PRE_VEGA = "1";
   };
   };
   hardware.graphics = {
   hardware.graphics = {
     enable = true;
     enable = true;
     extraPackages = with pkgs; [
     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
       mesa.opencl # Enables Rusticl (OpenCL) support
     ];
     ];
   };
   };
  system.stateVersion = "24.11";
}</syntaxhighlight>
}</syntaxhighlight>