From cd7fcd669a064451b4b1a782cb7c307a0d93e885 Mon Sep 17 00:00:00 2001 From: Jonas Pfenniger Date: Mon, 4 Feb 2013 17:12:05 +0000 Subject: [PATCH] Use the %HOST% and %PORT% variables It makes things more flexible --- definitions/nixos32/definition.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/definitions/nixos32/definition.rb b/definitions/nixos32/definition.rb index 04b00c6..8a46d79 100644 --- a/definitions/nixos32/definition.rb +++ b/definitions/nixos32/definition.rb @@ -16,7 +16,7 @@ session = { 'w', '', 'mkfs.ext4 -j -L nixos /dev/sda1', '', 'mount LABEL=nixos /mnt', '', - 'curl -O http://10.0.2.2:7122/configuration.nix &&', '', + 'curl -O http://%IP%:%PORT%/configuration.nix &&', '', 'mkdir -p /mnt/etc/nixos &&', '', 'mv configuration.nix /mnt/etc/nixos &&', '', 'nixos-install &&', '',