Can't get Obs Studio to work or open

Here is what’s in my configuration.nix file as it says it should be on wiki.nixos:

programs.obs-studio = {
enable = true;
plugins = with pkgs.obs-studio-plugins; [
wlrobs
obs-backgroundremoval
obs-pipewire-audio-capture
];
};

Obs is listed in my ‘applications’, but it won’t open. I am new to using OBS, I tried to cli as well. GUI = XFCE

And what is the error?

I realized my configuration.nix wasn’t right, but now I’m struggling to get it right. Here’s what I have in configuration.nix.

programs.obs-studio = {
enable = true;

package = (
  pkgs.obs-studio.override {
    cudaSupport = true;
  }
);

plugins = with pkgs.obs-studio-plugins; [
  wlrobs
  obs-pipewire-audio-capture
  obs-gstreamer
];

};

And the following is the error:

… while evaluating definitions from `/etc/nixos/configuration.nix’:

   (stack trace truncated; use '--show-trace' to show the full, detailed trace)

   error: function 'anonymous lambda' called with unexpected argument 'cudaSupport'
   at /nix/store/-nixos-24.11/nixos/pkgs/applications/video/obs-studio/default.nix:1:1:
        1| {
         | ^
        2|   config,

(I deleted the long hash in the /nix/store part of the error for this post.)