l...@gnu.org (Ludovic Courtès) skribis: > We need to at least make a proper profile, put it in $PATH via > /etc/bashrc; we need to have Guix installed in the image, and the > packages already there recognized. There are many details to fix > (setting a host name, etc.)
With commit 30f25b0, the image’s store is suitably initialized, meaning that Guix can be used inside the image. Remember that the store is made of /nix/store plus an SQLite database that stores references/referrers and additional meta-data. Thus, copying /nix/store/foobar to /the-image/nix/store is not enough to initialize the store. The new ‘guix-register’ program is here to do that: you run ‘guix-register --prefix /the-image guile.closure’, where ‘guile.closure’ contains meta-data about (say) /nix/store/…-guile-2.0.9, and that populates /the-image/var/nix/db with meta-data about that directory. (This is known as ‘nix-store --register-validity’ in Nix.) Thanks, Ludo’.