dotfiles-guix/scripts/build-installer

9 lines
304 B
Text
Raw Normal View History

2024-12-12 20:20:14 +00:00
#!/bin/sh
2024-12-13 03:53:10 +00:00
export GUIX_RETRY_NO_PROMPT=yes
2024-12-13 00:15:02 +00:00
retry="$(dirname $0)/guix-retry"
repo="$(realpath "$(dirname $0)/..")"
2024-12-13 03:53:10 +00:00
command="\"$retry\" guix system -L \"$repo/modules\" image -t iso9660 \"$repo/systems/installer.scm\""
image=$(sh -c "$command")
2024-12-12 20:20:14 +00:00
date="$(date -Iseconds)"
cp $image "guix-installer-$date.iso"