Distrobox
From NixOS Wiki
Distrobox offers you to use any linux distribution inside your terminal as a simple wrapper for Podman, Docker or Lilipod.
Usage
Setup container with latest Arch Linux image
# distrobox create --name archlinux --init --image archlinux:latest
Enter Arch Linux container
# distrobox enter archlinux
Permissions issues with Distrobox Containers
If you are encountering some permissions errors when attempting to install or run packages inside the Distrobox container, try standing up the container with --home and --volume arguments. This example uses Ubuntu, but you can modify it for any distribution of your choice.
# distrobox create --image ubuntu:latest --name ubuntu --home /home/ubuntu-distro --volume /etc/static/profiles/per-user:/etc/profiles/per-user:ro --verbose
If you wish to export a package (example: foo) that you installed into the container and allow usage via your App Launcher in NixOS, run this command inside the container:
# distrobox-export --app foo
For further usage, please refer to the Distrobox documentation.