Rename everything into nixbox
This commit is contained in:
parent
d29caed78e
commit
711d906b1f
10
Makefile
10
Makefile
|
@ -7,11 +7,11 @@ ISO_URL_64=http://nixos.org/releases/nixos/13.10/nixos-13.10.35455.45219b9/nixos
|
|||
ISO_MD5_64=fbac8c11661028e6f9c4ec293e1329e1
|
||||
GUEST_OS_64=Linux_64
|
||||
|
||||
all: nixos32-template.json nixos64-template.json
|
||||
all: nixbox32-template.json nixbox64-template.json
|
||||
|
||||
nixos32-template.json: nixos-template.json.orig
|
||||
cat $< | sed -e 's|ISO_URL|$(ISO_URL_32)|g' -e 's|ISO_MD5|$(ISO_MD5_32)|g' -e 's|GUEST_OS|$(GUEST_OS_32)|g' > $@
|
||||
nixbox32-template.json: nixbox-template.json.orig
|
||||
cat $< | sed -e 's|ISO_URL|$(ISO_URL_32)|g' -e 's|ISO_MD5|$(ISO_MD5_32)|g' -e 's|GUEST_OS|$(GUEST_OS_32)|g' -e 's|NIXBOX|nixbox32|g' > $@
|
||||
|
||||
nixos64-template.json: nixos-template.json.orig
|
||||
cat $< | sed -e 's|ISO_URL|$(ISO_URL_64)|g' -e 's|ISO_MD5|$(ISO_MD5_64)|g' -e 's|GUEST_OS|$(GUEST_OS_64)|g' > $@
|
||||
nixbox64-template.json: nixbox-template.json.orig
|
||||
cat $< | sed -e 's|ISO_URL|$(ISO_URL_64)|g' -e 's|ISO_MD5|$(ISO_MD5_64)|g' -e 's|GUEST_OS|$(GUEST_OS_64)|g' -e 's|NIXBOX|nixbox64|g' > $@
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
"mkfs.ext4 -j -L nixos /dev/sda1<enter><wait5>",
|
||||
"mount LABEL=nixos /mnt<enter><wait>",
|
||||
"nixos-generate-config --root /mnt<enter><wait>",
|
||||
"curl http://{{ .HTTPIP }}:{{ .HTTPPort }}/configuration.nix > /mnt/etc/nixos/configuration.nix<enter><wait>",
|
||||
"curl http://{{ .HTTPIP }}:{{ .HTTPPort }}/configuration.nix | sed -e 's|nixbox|NIXBOX|g' > /mnt/etc/nixos/configuration.nix<enter><wait>",
|
||||
"nixos-install && reboot<enter>"
|
||||
],
|
||||
"guest_additions_mode": "disable",
|
||||
|
@ -41,7 +41,10 @@
|
|||
}
|
||||
],
|
||||
"post-processors": [
|
||||
{ "type": "vagrant" }
|
||||
{
|
||||
"type": "vagrant",
|
||||
"output": "NIXBOX-{{.Provider}}.box"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -16,7 +16,7 @@
|
|||
"mkfs.ext4 -j -L nixos /dev/sda1<enter><wait5>",
|
||||
"mount LABEL=nixos /mnt<enter><wait>",
|
||||
"nixos-generate-config --root /mnt<enter><wait>",
|
||||
"curl http://{{ .HTTPIP }}:{{ .HTTPPort }}/configuration.nix > /mnt/etc/nixos/configuration.nix<enter><wait>",
|
||||
"curl http://{{ .HTTPIP }}:{{ .HTTPPort }}/configuration.nix | sed -e 's|nixbox|nixbox32|g' > /mnt/etc/nixos/configuration.nix<enter><wait>",
|
||||
"nixos-install && reboot<enter>"
|
||||
],
|
||||
"guest_additions_mode": "disable",
|
||||
|
@ -41,7 +41,10 @@
|
|||
}
|
||||
],
|
||||
"post-processors": [
|
||||
{ "type": "vagrant" }
|
||||
{
|
||||
"type": "vagrant",
|
||||
"output": "nixbox32-{{.Provider}}.box"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -16,7 +16,7 @@
|
|||
"mkfs.ext4 -j -L nixos /dev/sda1<enter><wait5>",
|
||||
"mount LABEL=nixos /mnt<enter><wait>",
|
||||
"nixos-generate-config --root /mnt<enter><wait>",
|
||||
"curl http://{{ .HTTPIP }}:{{ .HTTPPort }}/configuration.nix > /mnt/etc/nixos/configuration.nix<enter><wait>",
|
||||
"curl http://{{ .HTTPIP }}:{{ .HTTPPort }}/configuration.nix | sed -e 's|nixbox|nixbox64|g' > /mnt/etc/nixos/configuration.nix<enter><wait>",
|
||||
"nixos-install && reboot<enter>"
|
||||
],
|
||||
"guest_additions_mode": "disable",
|
||||
|
@ -41,7 +41,10 @@
|
|||
}
|
||||
],
|
||||
"post-processors": [
|
||||
{ "type": "vagrant" }
|
||||
{
|
||||
"type": "vagrant",
|
||||
"output": "nixbox64-{{.Provider}}.box"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
Loading…
Reference in a new issue