iso = { :file => 'nixos-minimal-0.1pre4019_3582393-45635e9-i686-linux.iso', :md5 => '603bdbf453c47d1592ade77a0fcb7a40', } session = { :boot_cmd_sequence => [ '', ''*15, 'root', '', 'fdisk /dev/sda', '', 'n', ''*5, 'a', '', '1', '', 'w', '', 'mkfs.ext4 -j -L nixos /dev/sda1', '', 'mount LABEL=nixos /mnt', '', 'curl -O http://10.0.2.2:7122/configuration.nix &&', '', 'mkdir -p /mnt/etc/nixos &&', '', 'mv configuration.nix /mnt/etc/nixos &&', '', 'nixos-install &&', '', 'reboot', '' ], :boot_wait => '5', :cpu_count => '1', :disk_format => 'VDI', :disk_size => '20400', :hostiocache => 'off', :iso_download_timeout => '1000', :iso_file => iso[:file], :iso_md5 => iso[:md5], :iso_src => "http://nixos.org/releases/nixos/#{iso[:file]}", :kickstart_file => 'configuration.nix', :kickstart_port => '7122', :kickstart_timeout => '10000', :memory_size => '256', :os_type_id => 'Linux', :postinstall_files => [ 'postinstall.sh' ], :postinstall_timeout => '10000', :shutdown_cmd => 'shutdown -h now', :ssh_guest_port => '22', :ssh_host_port => '7222', :ssh_key => '', :ssh_login_timeout => '10000', :ssh_password => 'vagrant', :ssh_user => 'vagrant', :sudo_cmd => "sudo '%f'" } Veewee::Definition.declare session