In progress work
This commit is contained in:
34
Vagrantfile
vendored
Normal file → Executable file
34
Vagrantfile
vendored
Normal file → Executable file
@@ -22,7 +22,7 @@ gui_enabled = ENV['VAGRANT_GUI'] || true
|
||||
# backwards compatibility). Please don't change it unless you know what
|
||||
# you're doing.
|
||||
Vagrant.configure("2") do |config|
|
||||
config.vm.box = "ubuntu/focal64"
|
||||
config.vm.box = "ubuntu/jammy64"
|
||||
|
||||
# Disable automatic box update checking. If you disable this, then
|
||||
# boxes will only be checked for updates when the user runs
|
||||
@@ -47,9 +47,19 @@ Vagrant.configure("2") do |config|
|
||||
vb.gui = gui_enabled
|
||||
if gui_enabled
|
||||
vb.customize ["modifyvm", :id, "--monitorcount", (ENV['VAGRANT_MONITORS'] || '1')]
|
||||
vb.customize ["modifyvm", :id, "--graphicscontroller", "vboxsvga"]
|
||||
vb.customize ["modifyvm", :id, "--vram", "128"]
|
||||
|
||||
vb.customize ["modifyvm", :id, "--graphicscontroller", "vmsvga"]
|
||||
vb.customize ["modifyvm", :id, "--vram", "256"]
|
||||
vb.customize ["modifyvm", :id, "--accelerate3d", "on"]
|
||||
vb.customize ["modifyvm", :id, "--accelerate2dvideo", "on"]
|
||||
|
||||
# Clipboard sharing
|
||||
vb.customize ["modifyvm", :id, "--clipboard", "bidirectional"]
|
||||
|
||||
end
|
||||
|
||||
# Use hosts DNS resolver
|
||||
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
|
||||
end
|
||||
|
||||
config.vm.define "default", primary: true do |primary|
|
||||
@@ -58,9 +68,19 @@ Vagrant.configure("2") do |config|
|
||||
config.vm.define "test", autostart: false do |test|
|
||||
end
|
||||
|
||||
# Update apt and install custom specified packages
|
||||
config.vm.provision :shell,
|
||||
name: "Install Minimal XFCE",
|
||||
path: "provisioners/install-xfce-minimal.sh" \
|
||||
name: "Install APT Packages",
|
||||
path: "provisioners/install-apt-packages.sh"
|
||||
|
||||
# config.vm.provision :shell,
|
||||
# name: "Install Minimal XFCE",
|
||||
# path: "provisioners/install-xfce-minimal.sh" \
|
||||
# if gui_enabled
|
||||
|
||||
config.vm.provision :shell,
|
||||
name: "Install Minimal KDE",
|
||||
path: "provisioners/install-kde-minimal.sh" \
|
||||
if gui_enabled
|
||||
|
||||
config.vm.provision :shell,
|
||||
@@ -68,10 +88,6 @@ Vagrant.configure("2") do |config|
|
||||
path: "provisioners/install-nix.sh",
|
||||
privileged: false
|
||||
|
||||
config.vm.provision :shell,
|
||||
name: "Install APT Packages",
|
||||
path: "provisioners/install-apt-packages.sh"
|
||||
|
||||
config.vm.provision :shell,
|
||||
name: "Cleanup tasks",
|
||||
inline: <<~SHELLEND
|
||||
|
||||
Reference in New Issue
Block a user