Skip to content

Commit

Permalink
feat: Make supergfxctl optional based on IMAGE_NAME (#201)
Browse files Browse the repository at this point in the history
Switcheroo can do this same task, so we can move supergfxctl to the image-specific change list. Downstream can pass another value to IMAGE_NAME to prevent any part of supergfxctl from being installed.

Could also move this to a separate true/false flag, though that may be less clean.
  • Loading branch information
KyleGospo authored Mar 17, 2024
1 parent 079e8a6 commit a8d340b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,17 @@ rpm-ostree install \
source /tmp/akmods-rpms/kmods/nvidia-vars.${NVIDIA_MAJOR_VERSION}

if [[ "${IMAGE_NAME}" == "kinoite" ]]; then
VARIANT_PKGS="supergfxctl-plasmoid"
VARIANT_PKGS="supergfxctl-plasmoid supergfxctl"
elif [[ "${IMAGE_NAME}" == "silverblue" ]]; then
VARIANT_PKGS="gnome-shell-extension-supergfxctl-gex"
VARIANT_PKGS="gnome-shell-extension-supergfxctl-gex supergfxctl"
else
VARIANT_PKGS=""
fi

rpm-ostree install \
xorg-x11-drv-${NVIDIA_PACKAGE_NAME}-{,cuda-,devel-,kmodsrc-,power-}${NVIDIA_FULL_VERSION} \
xorg-x11-drv-${NVIDIA_PACKAGE_NAME}-libs.i686 \
nvidia-container-toolkit nvidia-vaapi-driver supergfxctl ${VARIANT_PKGS} \
nvidia-container-toolkit nvidia-vaapi-driver ${VARIANT_PKGS} \
/tmp/akmods-rpms/kmods/kmod-${NVIDIA_PACKAGE_NAME}-${KERNEL_VERSION}-${NVIDIA_AKMOD_VERSION}.fc${RELEASE}.rpm

if [ -n "${RPMFUSION_MIRROR}" ]; then
Expand Down

0 comments on commit a8d340b

Please sign in to comment.