npub1k9arkn78gmdp5ew20r44aqwwu84wjhvshjf9kcht46heh4zajthsjjm3yh (npub1k9a…m3yh) for local stuff nix is actually worth looking at. It does two things really well. You can install a set of packages and then roll back to a previous state if you want to. The other is being able to install packages within a context.
Like say you need python 2 for one app and python 3 for another. Nix will let you set your environment based on a directory.