feat: Configure Bazzite Arch for Nvidia GPUs

Check kargs as the Nvidia driver may not be loaded on laptops that
have opted to use integrated graphics
This commit is contained in:
RJ Trujillo 2023-06-28 15:03:43 -06:00
parent ab93985fb6
commit 668ec565f0
2 changed files with 12 additions and 1 deletions

View File

@ -142,7 +142,7 @@ screens:
condition:
run: distrobox list | grep -v bazzite-arch
packages:
- Install Bazzite Arch: yes | distrobox create -i ghcr.io/ublue-os/bazzite-arch -n bazzite-arch
- Install Bazzite Arch: just install-bazzite-arch
- Export Steam: distrobox-enter -n bazzite-arch -- ' distrobox-export --app steam'
- Export Lutris: distrobox-enter -n bazzite-arch -- ' distrobox-export --app lutris'
- Export Protontricks: distrobox-enter -n bazzite-arch -- ' distrobox-export --app protontricks'

View File

@ -1,3 +1,14 @@
install-bazzite-arch:
#!/usr/bash/env bash
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
else
echo 'Installing Bazzite Arch...'
yes | distrobox create -i ghcr.io/ublue-os/bazzite-arch -n bazzite-arch
fi
get-greenlight:
echo 'Retrieving Greenlight'
wget https://github.com/unknownskl/greenlight/releases/download/v2.0.0-beta8/Greenlight-2.0.0-beta8.AppImage -O ~/Desktop/Greenlight.AppImage