You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.0 KiB

2 years ago
  1. # -*- mode: ruby -*-
  2. # vi: set ft=ruby :
  3. Vagrant.configure("2") do |config|
  4. config.vm.define "ubuntu" do |ubuntu|
  5. ubuntu.vm.box = "generic/ubuntu2004"
  6. $script = <<~SCRIPT
  7. set -euxo pipefail
  8. curl -L https://nixos.org/nix/install | sh
  9. SCRIPT
  10. ubuntu.vm.provision "shell", inline: $script, privileged: false
  11. end
  12. config.vm.define "ubuntu_rustup" do |ubuntu|
  13. ubuntu.vm.box = "generic/ubuntu2004"
  14. $script = <<~SCRIPT
  15. set -euxo pipefail
  16. curl -L https://nixos.org/nix/install | sh
  17. curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
  18. source $HOME/.cargo/env
  19. rustup default stable-2021-06-17
  20. SCRIPT
  21. ubuntu.vm.provision "shell", inline: $script, privileged: false
  22. end
  23. config.ssh.forward_agent = true
  24. config.vm.synced_folder ".", "/vagrant", disabled: false
  25. config.vm.synced_folder "../..", "/hyperplonk", disabled: false, rsync__exclude: [".git/", "target"]
  26. config.vm.provider "libvirt" do |v|
  27. v.cpus = 4
  28. end
  29. end