How to specify the time for automated system updates (dnf-automatic)? AND/OR https://redstagtechnica.com/2019/07/dnf-automatic-schedule-updates-fedora-and-other-linux-distros/
May be of use for dnf4. I am not sure if you are using dnf (4) or dnf5, there may be differences in file location.
And for DNF5 Enable automatic updates in Fedora and Debian · GitHub