I currently have a drive mounted into a folder in nextcloud/data/username/files/media but it doesn’t show the contents of the drive the nextcloud gui.
EDIT: The solution is the “External storage support” app, which ist for some reason disabled by default.
Check the permissions on that directory
The drive is mounted as www-data, but the contents have different owners, which I cannot change due to the drive being mounted in multiple places.