#!/usr/bin/env bash

# omarchy:summary=Install Vagrant with VirtualBox as its provider
# omarchy:requires-sudo=true

# Based: VirtualBox first, through its own row, then Vagrant: Debian carries
# no vagrant, so it comes through asdf from the reviewed plugin bundle; a
# Mac takes the cask. The Vagrant editor extension comes with it.

set -eo pipefail

omarchy-install-development-virtualbox

echo "Installing Vagrant..."
case $(omarchy-os) in
darwin)
  omarchy-pkg-add vagrant cask=vagrant
  ;;
*)
  omarchy-pkg-add asdf
  omarchy-dev-env-tool vagrant
  ;;
esac

omarchy-code-extensions bbenoist.vagrant
