#!/run/current-system/profile/bin/bash

source ./guix-env
source ./guix-log

EVENT "Mounting /gnu/store to destination disk..."
herd start cow-store /mnt

EVENT "Installing non-guix signing keys for substitutes..."
curl -o /tmp/sign-key.pub https://substitutes.nonguix.org/signing-key.pub
guix archive --authorize < /tmp/sign-key.pub