fix: Use nvidia-container-toolkit in distrobox instead of --nvidia flag since it's included upstream.

This commit is contained in:
Kyle Gospodnetich 2023-06-28 19:00:10 -07:00
parent 99037359d7
commit a119f187ed

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 --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"
else
echo 'Installing Bazzite Arch...'
yes | distrobox create -i ghcr.io/ublue-os/bazzite-arch -n bazzite-arch