Apps for doing Research in Linux

I wrote a flake to switch between different TeXlive versions, to have a compatible environment with arXiv (2020) and journals (e.g. 2012/13!).

How do you approach this problem?
Is there a better way for doing this?