OBS "Failed to open NVENC codec"

Hello! I’m trying to stream/record with OBS on an Nvidia card, but I keep running into the following error:

image

Failed to open NVENC codec: Operation not permitted

Please check your video drivers are up to date.

Am I missing a package or piece of configuration? I’ve tried ffmpeg-full, nvidia-cg-toolkit, and nvidia-video-sdk, which fails to download. I am on GNOME/Wayland, in case that’s relevant. I already have this for Nvidia support:

services.xserver.videoDrivers = [ "nvidia" ];
hardware.nvidia.modesetting.enable = true;
hardware.opengl.enable = true;

Also getting this error., nvidia 3060 with similar settings