From d48a1cd85657dbad6c91ea4f9b7e13ba0d6cd279 Mon Sep 17 00:00:00 2001 From: Lucas Sta Maria Date: Sun, 27 Jul 2025 11:25:21 +0000 Subject: [PATCH] fix(nix): configure for dvr --- nix/hosts/framework/home.nix | 8 +++++++- nix/hosts/framework/hw.nix | 2 +- nix/hosts/framework/sys.nix | 16 +++++++++++++++- 3 files changed, 23 insertions(+), 3 deletions(-) diff --git a/nix/hosts/framework/home.nix b/nix/hosts/framework/home.nix index 884f513..d51a165 100644 --- a/nix/hosts/framework/home.nix +++ b/nix/hosts/framework/home.nix @@ -106,7 +106,13 @@ lutris stremio qbittorrent - davinci-resolve + davinci-resolve-studio + + # Required by DVR + kitty + mesa-demos + vulkan-tools + clinfo aspell aspellDicts.en diff --git a/nix/hosts/framework/hw.nix b/nix/hosts/framework/hw.nix index a92091a..3171e5a 100644 --- a/nix/hosts/framework/hw.nix +++ b/nix/hosts/framework/hw.nix @@ -5,7 +5,7 @@ boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "thunderbolt" "usb_storage" "usbhid" "sd_mod" ]; - boot.initrd.kernelModules = [ ]; + boot.initrd.kernelModules = [ "amdgpu" ]; boot.kernelModules = [ "kvm-amd" ]; boot.extraModulePackages = [ ]; diff --git a/nix/hosts/framework/sys.nix b/nix/hosts/framework/sys.nix index a8582ba..514ff75 100644 --- a/nix/hosts/framework/sys.nix +++ b/nix/hosts/framework/sys.nix @@ -59,7 +59,18 @@ # AMD hardware.cpu.amd.updateMicrocode = true; - hardware.graphics.enable = true; + hardware.graphics = { + enable = true; + extraPackages = with pkgs; [ + mesa + libva + libvdpau-va-gl + vulkan-loader + vulkan-validation-layers + amdvlk + mesa.opencl + ]; + }; hardware.amdgpu.amdvlk.enable = true; # Power @@ -111,6 +122,9 @@ CC = "gcc"; LSP_USE_PLISTS = "true"; MOZ_USE_XINPUT2 = "1"; + RUSTICL_ENABLE="radeonsi"; + ROC_ENABLE_PRE_VEGA = "1"; + QT_QPA_PLATFORM = "xcb"; }; ### Services