First time build

I’m building a nas( first build) using truenas.
I’ll also use Plex, zoneminder, homeassistant, nextcloud, opensense, pihole, adgaurd.
I have few questions regarding the build.

  1. Is truenas the best for my use case?

Plex will have a Max transcoding of 1 - 4k and 1 - 1080p video simultaneously.
Zoneminder will have 4 1080p cams @ 2 -10 fps
2. Will an AMD Ryzen 5 5600g(75usd) be enough or should I go for a AMD Ryzen 7 5800x(115usd)?