45 lines
1.3 KiB
JSON
45 lines
1.3 KiB
JSON
{
|
|
"builders": [
|
|
{
|
|
"type": "virtualbox",
|
|
"boot_wait": "1m",
|
|
"boot_command": [
|
|
"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>",
|
|
"curl http://{{ .HTTPIP }}:{{ .HTTPPort }}/configuration.nix > /mnt/etc/nixos/configuration.nix<enter><wait>",
|
|
"nixos-install && reboot<enter>"
|
|
],
|
|
"guest_additions_mode": "disable",
|
|
"guest_os_type": "Linux",
|
|
"http_directory": "http",
|
|
"iso_checksum": "c10f01734cb187e13068252e2cde565d",
|
|
"iso_checksum_type": "md5",
|
|
"iso_url": "http://nixos.org/releases/nixos/13.10/nixos-13.10.35455.45219b9/nixos-minimal-13.10.35455.45219b9-i686-linux.iso",
|
|
"shutdown_command": "sudo shutdown -h now",
|
|
"ssh_password": "vagrant",
|
|
"ssh_port": 22,
|
|
"ssh_username": "vagrant",
|
|
"ssh_wait_timeout": "5m",
|
|
"virtualbox_version_file": ".vbox_version"
|
|
}
|
|
],
|
|
"provisioners": [
|
|
{
|
|
"type": "shell",
|
|
"execute_command": "sudo '{{.Path}}'",
|
|
"script": "scripts/postinstall.sh"
|
|
}
|
|
]
|
|
}
|
|
|