mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-03-30 07:20:44 +00:00
Merge branch 'main' into etc-cleanup
This commit is contained in:
commit
01ea61880c
@ -317,6 +317,7 @@ RUN rpm-ostree install \
|
||||
ibus-table-chinese-cangjie \
|
||||
ibus-table-chinese-quick \
|
||||
socat \
|
||||
zstd \
|
||||
python-vdf \
|
||||
python-crcmod && \
|
||||
git clone https://gitlab.com/evlaV/jupiter-dock-updater-bin.git \
|
||||
@ -334,6 +335,7 @@ RUN rpm-ostree install \
|
||||
rm -rf /tmp/linux-firmware-neptune
|
||||
|
||||
# Install Steam and Lutris into their own OCI layer
|
||||
# Add bootstraplinux_ubuntu12_32.tar.xz used by gamescope-session (Thanks ChimeraOS! - https://chimeraos.org/)
|
||||
RUN rpm-ostree install \
|
||||
steam \
|
||||
lutris \
|
||||
@ -343,6 +345,10 @@ RUN rpm-ostree install \
|
||||
wine-core \
|
||||
winetricks \
|
||||
protontricks && \
|
||||
wget https://steamdeck-packages.steamos.cloud/archlinux-mirror/jupiter-main/os/x86_64/steam-jupiter-stable-1.0.0.76-1-x86_64.pkg.tar.zst -O /tmp/steam-jupiter.pkg.tar.zst && \
|
||||
mkdir -p /etc/first-boot && \
|
||||
tar -I zstd -xvf /tmp/steam-jupiter.pkg.tar.zst usr/lib/steam/bootstraplinux_ubuntu12_32.tar.xz -O > /etc/first-boot/bootstraplinux_ubuntu12_32.tar.xz && \
|
||||
rm -f /tmp/steam-jupiter.pkg.tar.zst && \
|
||||
if grep -q "kinoite" <<< "${BASE_IMAGE_NAME}"; then \
|
||||
rpm-ostree override remove \
|
||||
gamemode \
|
||||
@ -375,14 +381,12 @@ RUN rm /usr/share/applications/wine*.desktop && \
|
||||
sed -i 's@enabled=1@enabled=0@g' /etc/yum.repos.d/_copr_kylegospo-obs-vkcapture.repo && \
|
||||
sed -i 's@enabled=1@enabled=0@g' /etc/yum.repos.d/_copr_kylegospo-wallpaper-engine-kde-plugin.repo && \
|
||||
sed -i 's@enabled=1@enabled=0@g' /etc/yum.repos.d/_copr_ycollet-audinux.repo && \
|
||||
if grep -q "kinoite" <<< "${BASE_IMAGE_NAME}"; then \
|
||||
systemctl enable plasma-autologin.service \
|
||||
; else \
|
||||
if grep -q "silverblue" <<< "${BASE_IMAGE_NAME}"; then \
|
||||
systemctl mask power-profiles-daemon.service && \
|
||||
systemctl disable gdm.service && \
|
||||
systemctl enable sddm.service && \
|
||||
systemctl enable gnome-autologin.service \
|
||||
systemctl enable sddm.service \
|
||||
; fi && \
|
||||
systemctl enable desktop-autologin.service && \
|
||||
systemctl enable jupiter-fan-control.service && \
|
||||
systemctl enable btrfs-dedup@run-media-mmcblk0p1.timer && \
|
||||
systemctl enable vpower.service && \
|
||||
|
@ -24,6 +24,11 @@ ublue_variants:
|
||||
flavors:
|
||||
- label: bazzite-deck
|
||||
info: Bazzite (Steam Deck Edition)
|
||||
- label: ublue-os/bazzite-deck
|
||||
ks: /kickstart/ublue-os.ks
|
||||
flavors:
|
||||
- label: bazzite-deck
|
||||
info: Bazzite (Steam Deck Edition for HTPCs)
|
||||
- label: ublue-os/bazzite-gnome
|
||||
ks: /kickstart/ublue-os.ks
|
||||
flavors:
|
||||
@ -49,3 +54,8 @@ ublue_variants:
|
||||
flavors:
|
||||
- label: bazzite-deck-gnome
|
||||
info: Bazzite GNOME (Steam Deck Edition)
|
||||
- label: ublue-os/bazzite-deck-gnome
|
||||
ks: /kickstart/ublue-os.ks
|
||||
flavors:
|
||||
- label: bazzite-deck-gnome
|
||||
info: Bazzite GNOME (Steam Deck Edition for HTPCs)
|
||||
|
@ -1,24 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
source /etc/default/desktop-wayland
|
||||
|
||||
USER=$(id -nu 1000)
|
||||
|
||||
# SteamOS SDDM config
|
||||
SDDM_CONF='/etc/sddm.conf.d/steamos.conf'
|
||||
if [ ! -f ${SDDM_CONF} ]; then
|
||||
# Fallback to sddm.conf
|
||||
SDDM_CONF='/etc/sddm.conf'
|
||||
KDE_SETTINGS='/etc/sddm.conf.d/kde_settings.conf'
|
||||
if [ -f ${KDE_SETTINGS} ]; then
|
||||
rm -f ${KDE_SETTINGS}
|
||||
fi
|
||||
fi
|
||||
|
||||
# Configure autologin
|
||||
if ${DESKTOP_WAYLAND}; then
|
||||
sed -i 's/.*Session=.*/Session=plasma.desktop/g' ${SDDM_CONF}
|
||||
else
|
||||
sed -i 's/.*Session=.*/Session=plasmax11.desktop/g' ${SDDM_CONF}
|
||||
fi
|
||||
sed -i 's/.*User=.*/User='${USER}'/g' ${SDDM_CONF}
|
@ -1,10 +0,0 @@
|
||||
[Unit]
|
||||
Description=Enables autologin to Plasma (X11)
|
||||
Before=display-manager.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/bin/plasma-autologin
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
25
system_files/deck/shared/usr/bin/desktop-autologin
Executable file
25
system_files/deck/shared/usr/bin/desktop-autologin
Executable file
@ -0,0 +1,25 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
source /etc/default/bazzite
|
||||
source /etc/default/desktop-wayland
|
||||
|
||||
USER=$(id -nu 1000)
|
||||
|
||||
# SteamOS SDDM config
|
||||
SDDM_CONF='/etc/sddm.conf.d/steamos.conf'
|
||||
|
||||
# Configure SDDM autologin
|
||||
if [[ ${BASE_IMAGE_NAME} =~ "kinoite" ]]; then
|
||||
if ${DESKTOP_WAYLAND}; then
|
||||
sed -i 's/.*Session=.*/Session=plasma.desktop/g' ${SDDM_CONF}
|
||||
else
|
||||
sed -i 's/.*Session=.*/Session=plasmax11.desktop/g' ${SDDM_CONF}
|
||||
fi
|
||||
elif [[ ${BASE_IMAGE_NAME} =~ "silverblue" ]]; then
|
||||
if ${DESKTOP_WAYLAND}; then
|
||||
sed -i 's/.*Session=.*/Session=gnome-wayland.desktop/g' ${SDDM_CONF}
|
||||
else
|
||||
sed -i 's/.*Session=.*/Session=gnome-xorg.desktop/g' ${SDDM_CONF}
|
||||
fi
|
||||
fi
|
||||
sed -i 's/.*User=.*/User='${USER}'/g' ${SDDM_CONF}
|
@ -1,10 +1,10 @@
|
||||
[Unit]
|
||||
Description=Enables autologin to GNOME
|
||||
Description=Enables autologin to desktop
|
||||
Before=display-manager.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/bin/gnome-autologin
|
||||
ExecStart=/usr/bin/desktop-autologin
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
@ -34,25 +34,13 @@ setup-firefox-vaapi-nvidia:
|
||||
|
||||
# Enable autologin to gamescope session
|
||||
enable-gamescope-autologin:
|
||||
#!/usr/bin/env bash
|
||||
source /etc/default/bazzite
|
||||
if [[ ${BASE_IMAGE_NAME} == 'silverblue' ]]; then
|
||||
systemctl disable --now gnome-autologin
|
||||
elif [[ ${BASE_IMAGE_NAME} == 'kinoite' ]]; then
|
||||
systemctl disable --now plasma-autologin
|
||||
fi
|
||||
systemctl disable --now desktop-autologin
|
||||
systemctl enable --now gamescope-autologin
|
||||
|
||||
# Enable autologin to desktop
|
||||
enable-desktop-autologin:
|
||||
#!/usr/bin/env bash
|
||||
source /etc/default/bazzite
|
||||
systemctl disable --now gamescope-autologin
|
||||
if [[ ${BASE_IMAGE_NAME} == 'silverblue' ]]; then
|
||||
systemctl enable --now gnome-autologin
|
||||
elif [[ ${BASE_IMAGE_NAME} == 'kinoite' ]]; then
|
||||
systemctl enable --now plasma-autologin
|
||||
fi
|
||||
systemctl enable --now desktop-autologin
|
||||
|
||||
# Launch Waydroid configuration helper
|
||||
configure-waydroid:
|
||||
@ -187,6 +175,7 @@ fix-tf2-tcmalloc:
|
||||
podman run \
|
||||
-v $HOME/.steam/steam/steamapps/common/Team\ Fortress\ 2/bin:/hl2_linux:Z \
|
||||
ghcr.io/maisatanel/tcmalloc-hl2-fixer:main
|
||||
echo "TF2 patch complete."
|
||||
|
||||
# Patch GMod's 64-bit beta to work properly on Linux
|
||||
patch-gmod:
|
||||
|
@ -1,20 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
source /etc/default/desktop-wayland
|
||||
|
||||
USER=$(id -nu 1000)
|
||||
|
||||
# SteamOS SDDM config
|
||||
SDDM_CONF='/etc/sddm.conf.d/steamos.conf'
|
||||
if [ ! -f ${SDDM_CONF} ]; then
|
||||
# Fallback to sddm.conf
|
||||
SDDM_CONF = '/etc/sddm.conf'
|
||||
fi
|
||||
|
||||
# Configure autologin
|
||||
if ${DESKTOP_WAYLAND}; then
|
||||
sed -i 's/.*Session=.*/Session=gnome-wayland.desktop/g' ${SDDM_CONF}
|
||||
else
|
||||
sed -i 's/.*Session=.*/Session=gnome-xorg.desktop/g' ${SDDM_CONF}
|
||||
fi
|
||||
sed -i 's/.*User=.*/User='${USER}'/g' ${SDDM_CONF}
|
@ -2,7 +2,7 @@
|
||||
source /etc/default/bazzite
|
||||
|
||||
# SCRIPT VERSION
|
||||
HWS_VER=1
|
||||
HWS_VER=2
|
||||
HWS_VER_FILE="/etc/bazzite/hws_version"
|
||||
HWS_VER_RAN=$(cat $HWS_VERSION_FILE)
|
||||
|
||||
@ -84,6 +84,13 @@ elif [[ $IMAGE_NAME =~ "deck" ]]; then
|
||||
systemctl --global disable --now sdgyrodsu.service
|
||||
fi
|
||||
|
||||
# REVERT ME, disable desktop-autologin if gamescope-autologin is enabled
|
||||
if [[ $IMAGE_NAME =~ "deck" ]]; then
|
||||
if systemctl is-enabled --quiet gamescope-autologin; then
|
||||
systemctl disable --now desktop-autologin
|
||||
fi
|
||||
fi
|
||||
|
||||
if grep -qz "Kernel driver in use: radeon" <<< $GPU_ID; then
|
||||
echo "Legacy AMD hardware detected, enabling CIK and SI support in AMDGPU"
|
||||
if [[ ! $KARGS =~ "radeon.si_support" ]]; then
|
||||
|
@ -149,6 +149,7 @@ fix-tf2-tcmalloc:
|
||||
podman run \
|
||||
-v $HOME/.steam/steam/steamapps/common/Team\ Fortress\ 2/bin:/hl2_linux:Z \
|
||||
ghcr.io/maisatanel/tcmalloc-hl2-fixer:main
|
||||
echo "TF2 patch complete."
|
||||
|
||||
# Patch GMod's 64-bit beta to work properly on Linux
|
||||
patch-gmod:
|
||||
|
Loading…
x
Reference in New Issue
Block a user