From 4c2d93eae7b49f7cd0f4011464c53b1c538095c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Tue, 16 Jul 2024 01:40:36 +0200 Subject: [PATCH] Improve obs slightly --- home/programs/obs-studio/default.nix | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/home/programs/obs-studio/default.nix b/home/programs/obs-studio/default.nix index 34afa89..87f8565 100644 --- a/home/programs/obs-studio/default.nix +++ b/home/programs/obs-studio/default.nix @@ -1,14 +1,15 @@ { pkgs, lib, osConfig, ... }: let - withCuda = if (osConfig.system.name == "gunter") then true else false; + withCuda = osConfig.system.name == "gunter"; onnxruntime-gpu = (pkgs.onnxruntime.override { cudaSupport = withCuda; - }).overrideAttrs (old: { - # TODO: Remove when fixed in nixpkgs - # https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/development/libraries/onnxruntime/default.nix#L154 - buildInputs = old.buildInputs ++ [ pkgs.cudaPackages.nccl ]; - }); + }).overrideAttrs + (old: { + # TODO: Remove when fixed in nixpkgs + # https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/development/libraries/onnxruntime/default.nix#L154 + buildInputs = old.buildInputs ++ [ pkgs.cudaPackages.nccl ]; + }); obs-backgrounremoval-gpu = ((pkgs.obs-studio-plugins.obs-backgroundremoval.override { onnxruntime = onnxruntime-gpu;