Boot the vm, attaching the inputs as disks

This commit is contained in:
Georges Dupéron 2018-09-06 23:34:19 +02:00
parent 778497fb8a
commit 30789e5d5f
2 changed files with 9 additions and 2 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
*.nar

View File

@ -1,2 +1,8 @@
all:
"$$(guix system vm-image config.scm)"
all: hello.nar /etc/guix/signing-key.pub Makefile
qemu-system-x86_64 -enable-kvm -m 256 \
"$$(guix system vm-image config.scm)" \
-drive format=raw,readonly,file=hello.nar,index=0,if=ide,index=1,media=disk \
-drive format=raw,readonly,file=/etc/guix/signing-key.pub,index=0,if=ide,index=2,media=disk
%.nar: Makefile
guix archive --export --recursive $* > $@