I managed to use the Determinate Systems Nix Installer to get things installed at the ostree layer. That works as far as I can tell.
However, when I do a “toolbox create” and then “toolbox enter”, Nix is nowhere to be found. Running “nix-installed install” from inside the toolbox also fails. Simply adjusting the PATH doesn’t seem to be sufficient to make everything work.
Are there any directions floating around about how to get Nix running inside a toolbox?
Without knowing, I suppose those nix binaries are outside of /var/home/username which is mounted into the toolbox/distrobox.
So you need to find the directory where the nix binaries are installed, mount that into the box (podman container) and then change the PATH to find it automatically.
Curious about your progress! Nix is one of the many cool ways to get packages without layering.
i was trying to do the same thing, i couldn’t anyone who did that, so i made a hack, i copied the /etc/profile.d/nix.sh to the /etc/profile.d inside the toolbox, and symlinked /run/host/nix to /nix inside the toolbox