I am thinking of exploring systemd-nspawn - ArchWiki with Nixos Containers
https://nixos.org/nixos/manual/index.html#ch-containers