mirror of
https://github.com/eoli3n/dotfiles
synced 2024-11-23 07:21:58 +01:00
37 lines
888 B
Ruby
37 lines
888 B
Ruby
# -*- 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
|
|
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
|
|
./install.sh desktop
|
|
mkdir ~/img
|
|
cp ~/dotfiles/wallpaper/03976_theeleventhhour_1920x1080.jpg ~/img/
|
|
SCRIPT
|
|
|
|
config.vm.provision "shell", inline: $script, privileged: false
|
|
end
|