# -*- mode: ruby -*- # vi: set ft=ruby : Vagrant.configure("2") do |config| config.vm.box = "terrywang/archlinux" config.vm.provider "virtualbox" do |vb| # Display the VirtualBox GUI when booting the machine #vb.gui = true # Customize the amount of memory on the VM: vb.memory = "1024" end config.vm.provision "shell", inline: <<-SHELL mount -o remount,size=1G /tmp pacman -Syu --noconfirm pacman -S ansible --noconfirm pacman -R cowsay --noconfirm || exit 0 SHELL $script = <<-SCRIPT touch ~/.viminfo; rm ~/.viminfo touch ~/.vimrc; rm ~/.vimrc git clone --recursive https://github.com/eoli3n/dotfiles cd dotfiles git checkout dev git submodule update --init --recursive curl -o PKGBUILD https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=packer-git; makepkg PKGBUILD --install --needed --noconfirm ./install.sh desktop SCRIPT config.vm.provision "shell", inline: $script, privileged: false end