You can build a nix-based container or vm image and run that, but I'm not sure what kind of tooling exists for that.
That can be specified quite nicely in a NixOS config: the NixOS config for the container/VM is just a nested value inside the host's config.
That can be specified quite nicely in a NixOS config: the NixOS config for the container/VM is just a nested value inside the host's config.