{ "builders": [ { "type": "virtualbox", "boot_wait": "1m", "boot_command": [ "root", "stop sshd", "fdisk /dev/sda", "n", "", "a", "1", "w", "", "mkfs.ext4 -j -L nixos /dev/sda1", "mount LABEL=nixos /mnt", "nixos-generate-config --root /mnt", "curl http://{{ .HTTPIP }}:{{ .HTTPPort }}/configuration.nix > /mnt/etc/nixos/configuration.nix", "nixos-install && reboot" ], "guest_additions_mode": "disable", "guest_os_type": "GUEST_OS", "http_directory": "http", "iso_checksum": "ISO_MD5", "iso_checksum_type": "md5", "iso_url": "ISO_URL", "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 sh '{{.Path}}'", "script": "scripts/postinstall.sh" } ], "post-processors": [ { "type": "vagrant" } ] }