I would not recommend swapping out major components without doing a new install. Linux installation is quite simple these days, so back up your configs and put them in place in the new installation.
If you run things in containers, these kinds of issues are not as relevant. You can run jellyfin in docker the same on any host and pass the GPU through for xcoding.
Unfortunately I don't think there's enough info to answer your question specifically.
So for a cheat code, check out "ansible-nas" on github. It will do all the heavy lifting for you.