I’m using NixOS and I’m trying to set up an Ubuntu chroot.
Following non-NixOS-specific instructions that I have found around the internet, I have managed to do the following:
sudo mkdir -p /chroot/ubuntu-1804 sudo debootstrap bionic /chroot/ubuntu-1804 http://archive.ubuntu.com/ubuntu/
The latter command prints a lot of output and reports “Base system installed successfully.”.
Now, I would like to enter the chroot as a non-root user. This is where everyone suggests a command like
schroot. The problem is, I can’t find it in Nixpkgs. Is it available to NixOS, or is there an alternative that I should use instead?