Makefile : Fix vm target.

This commit is contained in:
Dmitry Voronin 2024-09-08 04:13:43 +03:00
parent bdda7f8ab8
commit 4f81f18295
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k

View file

@ -1,5 +1,6 @@
options = --option eval-cache false --fallback
flake = .
hostname = $(shell hostname)
help:
@printf "Please specify a target.\n"
@ -68,4 +69,4 @@ verify:
# Untested.
vm:
nix run $(options) $(flake)#nixosConfigurations.${nixosConfig.networking.hostName}.config.system.build.vm
nix run $(options) $(flake)#nixosConfigurations.$(hostname).config.system.build.vm