>>106209646
If I'm not missing anything, this appears to be what you paste into terminal:
uuid=$(findmnt -no UUID /)
root_id=$(sudo btrfs subvolume list / | awk '$NF == "root" {print $2}')

sudo dnf install snapper python-dnf-plugin-snapper
sudo snapper -c root create-config /
sudo btrfs subvolume delete /.snapshots
sudo mkdir /mnt/btrfs /.snapshots
sudo mount /dev/disk/by-uuid/$uuid /mnt/btrfs
cd /mnt/btrfs
sudo btrfs subvolume create snapshots
cd ~
sudo umount /mnt/btrfs
sudo rmdir /mnt/btrfs
echo "UUID=$uuid /.snapshots btrfs subvol=snapshots,compress=zstd:1 0 0" | sudo tee -a /etc/fstab
sudo systemctl daemon-reload
sudo mount-a
sudo btrfs subvolume set-default $root_id /
sudo grubby --update-kernel=ALL --remove-args="rootflags=subvol=root"
However, no snapshots are being created after using dnf.