fix: Use alternate Nvidia init in Distrobox

This commit is contained in:
Kyle Gospodnetich 2023-07-08 16:45:05 -07:00
parent 40f4195a0f
commit b6288a1ed0

View File

@ -3,7 +3,7 @@ install-bazzite-arch:
KARGS=$(rpm-ostree kargs)
if grep 'nvidia' <<< ${KARGS}; then
echo 'Installing Bazzite Arch (Nvidia)...'
yes | distrobox create -i ghcr.io/ublue-os/bazzite-arch -n bazzite-arch --additional-flags "--runtime=nvidia -e NVIDIA_VISIBLE_DEVICES=all -e NVIDIA_DRIVER_CAPABILITIES=all"
yes | distrobox create -i ghcr.io/ublue-os/bazzite-arch -n bazzite-arch --nvidia
else
echo 'Installing Bazzite Arch...'
yes | distrobox create -i ghcr.io/ublue-os/bazzite-arch -n bazzite-arch