For photos/videos if you have the know-how to do docker, Immich is good. For everything else that I need to sync I use syncthing. Note there isn't an official android syncthing app anymore, but Syncthing Fork is still actively being maintained.
I should note that for me, I'm using my NAS for both of these solutions, but there's no reason you couldn't use either or both on desktop Linux.