Is there any way I can change the save path of for example the notes? I want to use Samba.
It depends on the app. In notes there is a setting for this.
But it is relative inside the nextcloud/data/username directory.
To achieve your described goal try to symlink data/username/files/notes to another file system target with