{ "builders": [ { "boot_command": [ "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", "curl http://{{ .HTTPIP }}:{{ .HTTPPort }}/guest-virtualbox.nix > /mnt/etc/nixos/guest.nix", "curl http://{{ .HTTPIP }}:{{ .HTTPPort }}/users-vagrant.nix > /mnt/etc/nixos/users.nix", "curl http://{{ .HTTPIP }}:{{ .HTTPPort }}/vagrant.nix > /mnt/etc/nixos/vagrant.nix", "nixos-install \u0026\u0026 reboot" ], "boot_wait": "1m", "guest_additions_mode": "disable", "guest_os_type": "Linux_64", "http_directory": "nixos", "iso_checksum": "sha256:aa9eeb04a491a84036368a93545400d79d16d281d4b7a29979bbb4f8476f9b81", "iso_url": "https://releases.nixos.org/nixos/22.05/nixos-22.05.1700.365e1b3a859/nixos-minimal-22.05.1700.365e1b3a859-x86_64-linux.iso", "shutdown_command": "sudo shutdown -h now", "ssh_private_key_file": "keys/vagrant.key", "ssh_timeout": "20m", "ssh_username": "root", "type": "virtualbox-iso", "vboxmanage": [ [ "modifyvm", "{{.Name}}", "--memory", "1024" ], [ "modifyvm", "{{.Name}}", "--cpus", "2" ] ], "virtualbox_version_file": ".vbox_version" } ], "post-processors": [ { "output": "nixos-22.05-x86_64-{{.Provider}}.box", "type": "vagrant" } ], "provisioners": [ { "execute_command": "sudo sh '{{.Path}}'", "script": "scripts/postinstall.sh", "type": "shell" } ] }