right now i'm literally doing this with the help of systemd-nspawn. this is what Arch Linux AUR is and it's also what NixOS does, but Nix is more complicated than AUR.
Arch Linux is a whole different world, but it revived my 2012 MacBook