2023-11-22 12:26:17 -07:00
|
|
|
NONGUIX_DIR ?= ~/Code/nonguix
|
2023-11-29 01:39:08 -07:00
|
|
|
GUIX_SUBSTITUTE_FLAG = --substitute-urls='https://ci.guix.gnu.org https://substitutes.nonguix.org'
|
2023-11-27 23:12:23 -07:00
|
|
|
GUIX_LIB_FLAGS = -L ./ -L $(NONGUIX_DIR)
|
2023-11-22 12:26:17 -07:00
|
|
|
|
|
|
|
VM_RAM ?= 4000
|
|
|
|
VM_CPU ?= 4
|
|
|
|
|
|
|
|
.PHONY: machines/%
|
2023-11-29 17:52:49 -07:00
|
|
|
machines/%: machines/%.scm
|
|
|
|
$(eval VM_SCRIPT := $(shell guix system $(GUIX_LIB_FLAGS) $(GUIX_SUBSTITUTE_FLAG) vm $<))
|
|
|
|
$(VM_SCRIPT) -m $(VM_RAM) -smp $(VM_CPU) -nic user,model=virtio-net-pci
|