dotfiles-guix/scripts/build-installer
Freya Murphy 296103cade
Some checks failed
installer / build (push) Failing after 23m29s
add guix installer workflow
2024-12-19 17:49:33 -05:00

8 lines
306 B
Bash
Executable file

#!/bin/sh
set -e -o pipefail
retry="$(dirname $0)/guix-retry"
repo="$(realpath "$(dirname $0)/..")"
command="\"$retry\" guix system -L \"$repo/modules\" image -t iso9660 \"$repo/systems/installer.scm\""
image=$(sh -c "$command" | tee /dev/tty)
date="$(date -Iseconds)"
cp $image "guix-installer-$date.iso"