I use TrueNAS as a Time Machine destination for multiple Macs running Tahoe. Seems to work fine with no local configuration changes. Just make sure in SMB global configuration you:
- Enable Apple SMB2/3 Protocol Extensions
And when creating the SMB share select Time Machine for purpose.