feat(desktop): Create bazzite-arch images with distrobox assemble

This commit is contained in:
Kyle Gospodnetich 2023-07-15 17:17:11 -07:00
parent d4a0d70482
commit da16ff1d6a
3 changed files with 18 additions and 2 deletions

View File

@ -0,0 +1,8 @@
[bazzite-arch]
image=ghcr.io/ublue-os/bazzite-arch
init=false
nvidia=false
pull=true
root=false
replace=false
start_now=true

View File

@ -0,0 +1,8 @@
[bazzite-arch]
image=ghcr.io/ublue-os/bazzite-arch
init=false
nvidia=true
pull=true
root=false
replace=false
start_now=true

View File

@ -3,10 +3,10 @@ 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
distrobox assemble create --file /usr/share/ublue-os/distrobox/bazzite-arch-nvidia
else
echo 'Installing Bazzite Arch...'
yes | distrobox create -i ghcr.io/ublue-os/bazzite-arch -n bazzite-arch
distrobox assemble create --file /usr/share/ublue-os/distrobox/bazzite-arch
fi
install-corectrl: