2013-07-22 04:07:17 -07:00
|
|
|
{
|
|
|
|
"builders": [
|
|
|
|
{
|
2013-11-27 05:08:23 -08:00
|
|
|
"type": "virtualbox",
|
|
|
|
"boot_wait": "1m",
|
2013-07-22 04:07:17 -07:00
|
|
|
"boot_command": [
|
2013-11-27 05:08:23 -08:00
|
|
|
"root<enter>",
|
|
|
|
"stop sshd<enter>",
|
|
|
|
"fdisk /dev/sda<enter>",
|
|
|
|
"n",
|
|
|
|
"<enter><enter><enter><enter><enter>",
|
|
|
|
"a<enter>",
|
|
|
|
"1<enter>",
|
|
|
|
"w<enter>",
|
|
|
|
"<wait>",
|
|
|
|
"mkfs.ext4 -j -L nixos /dev/sda1<enter><wait5>",
|
|
|
|
"mount LABEL=nixos /mnt<enter><wait>",
|
|
|
|
"nixos-generate-config --root /mnt<enter><wait>",
|
2013-11-27 12:48:07 -08:00
|
|
|
"curl http://{{ .HTTPIP }}:{{ .HTTPPort }}/configuration.nix | sed -e 's|nixbox|nixbox32|g' > /mnt/etc/nixos/configuration.nix<enter><wait>",
|
2013-11-27 05:08:23 -08:00
|
|
|
"nixos-install && reboot<enter>"
|
2013-07-22 04:07:17 -07:00
|
|
|
],
|
2013-11-09 07:01:41 -08:00
|
|
|
"guest_additions_mode": "disable",
|
|
|
|
"guest_os_type": "Linux",
|
2013-07-22 04:07:17 -07:00
|
|
|
"http_directory": "http",
|
2013-11-27 05:08:23 -08:00
|
|
|
"iso_checksum": "c10f01734cb187e13068252e2cde565d",
|
2013-07-22 04:07:17 -07:00
|
|
|
"iso_checksum_type": "md5",
|
2013-11-27 05:08:23 -08:00
|
|
|
"iso_url": "http://nixos.org/releases/nixos/13.10/nixos-13.10.35455.45219b9/nixos-minimal-13.10.35455.45219b9-i686-linux.iso",
|
2013-10-22 02:43:52 -07:00
|
|
|
"shutdown_command": "sudo shutdown -h now",
|
2013-07-22 04:07:17 -07:00
|
|
|
"ssh_password": "vagrant",
|
|
|
|
"ssh_port": 22,
|
2013-10-22 02:43:52 -07:00
|
|
|
"ssh_username": "vagrant",
|
2013-11-27 05:08:23 -08:00
|
|
|
"ssh_wait_timeout": "5m",
|
2013-10-22 02:43:52 -07:00
|
|
|
"virtualbox_version_file": ".vbox_version"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"provisioners": [
|
|
|
|
{
|
2013-11-09 07:01:41 -08:00
|
|
|
"type": "shell",
|
2013-11-27 12:11:51 -08:00
|
|
|
"execute_command": "sudo sh '{{.Path}}'",
|
2013-11-09 07:01:41 -08:00
|
|
|
"script": "scripts/postinstall.sh"
|
2013-07-22 04:07:17 -07:00
|
|
|
}
|
2013-11-27 12:36:32 -08:00
|
|
|
],
|
|
|
|
"post-processors": [
|
2013-11-27 12:48:07 -08:00
|
|
|
{
|
|
|
|
"type": "vagrant",
|
|
|
|
"output": "nixbox32-{{.Provider}}.box"
|
|
|
|
}
|
2013-07-22 04:07:17 -07:00
|
|
|
]
|
|
|
|
}
|
2013-10-22 02:43:52 -07:00
|
|
|
|