Hyprland-dotfiles/.install/vm.sh

25 lines
909 B
Bash
Raw Normal View History

2023-12-07 04:02:48 -05:00
# Set KVM environment variables
if [ $(_isKVM) == "0" ] ;then
echo -e "${GREEN}"
2023-12-21 15:57:44 -05:00
figlet "KVM VM"
2023-12-07 04:02:48 -05:00
echo -e "${NONE}"
2023-12-07 04:16:50 -05:00
echo "The script has detected that you run the installation in a KVM virtual machine."
2024-05-27 11:30:11 -04:00
echo
2024-02-19 12:14:24 -05:00
if grep -Fxq "kvm.conf" ~/dotfiles-versions/$version/hypr/conf/environment.conf
then
echo ":: KVM Environment already set."
else
if gum confirm "Do you want to install the KVM environment variables?" ;then
echo "source = ~/dotfiles/hypr/conf/environments/kvm.conf" > ~/dotfiles-versions/$version/hypr/conf/environment.conf
echo "Environment set to KVM."
fi
2023-12-07 04:02:48 -05:00
fi
2024-02-19 12:14:24 -05:00
if [[ $(_isInstalledPacman "${pkg}") == 0 ]]; then
echo ":: Qemu Guest Agent already installed"
else
if gum confirm "Do you want to install the QEMU guest agent?" ;then
_installPackagesPacman "qemu-guest-agent";
fi
2023-12-07 04:16:50 -05:00
fi
2023-12-07 04:02:48 -05:00
fi