2013-07-22 04:07:17 -07:00
|
|
|
{
|
|
|
|
"builders": [
|
|
|
|
{
|
|
|
|
"boot_command": [
|
|
|
|
"<enter><wait>",
|
|
|
|
"<wait><wait><wait><wait><wait><wait><wait><wait><wait><wait><wait><wait><wait><wait><wait><wait>",
|
|
|
|
"root<wait>",
|
|
|
|
"<enter><wait>",
|
2013-11-09 07:01:41 -08:00
|
|
|
"stop sshd",
|
2013-07-22 04:07:17 -07:00
|
|
|
"<enter><wait>",
|
|
|
|
"fdisk /dev/sda<wait>",
|
|
|
|
"<enter><wait>",
|
|
|
|
"n<wait>",
|
|
|
|
"<enter><enter><enter><enter><enter><wait>",
|
|
|
|
"a<wait>",
|
|
|
|
"<enter><wait>",
|
|
|
|
"1<wait>",
|
|
|
|
"<enter><wait>",
|
|
|
|
"w<wait>",
|
|
|
|
"<enter><wait>",
|
|
|
|
"mkfs.ext4 -j -L nixos /dev/sda1<wait>",
|
|
|
|
"<enter><wait>",
|
|
|
|
"mount LABEL=nixos /mnt<wait>",
|
|
|
|
"<enter><wait>",
|
|
|
|
"nixos-option --install<wait>",
|
|
|
|
"<enter><wait>",
|
2013-11-09 07:01:41 -08:00
|
|
|
"curl http://{{ .HTTPIP }}:{{ .HTTPPort }}/configuration.nix > /mnt/etc/nixos/configuration.nix &&<wait>",
|
2013-07-22 04:07:17 -07:00
|
|
|
"<enter><wait>",
|
2013-11-09 07:01:41 -08:00
|
|
|
"nixos-install &&<wait>",
|
2013-07-22 04:07:17 -07:00
|
|
|
"<enter><wait>",
|
|
|
|
"reboot<wait>",
|
|
|
|
"<enter><wait>"
|
|
|
|
],
|
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-09 07:01:41 -08:00
|
|
|
"iso_checksum": "d0e0a64fe9a5f3f946e6f9fe0b846e70",
|
2013-07-22 04:07:17 -07:00
|
|
|
"iso_checksum_type": "md5",
|
2013-11-09 07:01:41 -08:00
|
|
|
"iso_url": "http://nixos.org/releases/nixos/13.10/nixos-13.10.35445.be4e850/nixos-minimal-13.10.35445.be4e850-x86_64-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-07-22 04:07:17 -07:00
|
|
|
"ssh_wait_timeout": "10000s",
|
2013-10-22 02:43:52 -07:00
|
|
|
"type": "virtualbox",
|
|
|
|
"virtualbox_version_file": ".vbox_version"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"provisioners": [
|
|
|
|
{
|
2013-11-09 07:01:41 -08:00
|
|
|
"type": "shell",
|
|
|
|
"execute_command": "sudo '{{.Path}}'",
|
|
|
|
"script": "scripts/postinstall.sh"
|
2013-07-22 04:07:17 -07:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
2013-10-22 02:43:52 -07:00
|
|
|
|