Skip to content

Commit 0f0be44

Browse files
committed
feat: Preinstall system Flatpaks
Idea and implementation used from Endlish-Oesque/Beyond
1 parent 7928fff commit 0f0be44

File tree

7 files changed

+31
-23
lines changed

7 files changed

+31
-23
lines changed

Containerfile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,7 @@ RUN if grep -v "nvidia" <<< "${IMAGE_NAME}"; then \
7979
; fi
8080

8181
# Add Flathub
82-
RUN flatpak remove --system --noninteractive --all && \
83-
flatpak remote-add --system --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo && \
82+
RUN flatpak remote-add --system --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo && \
8483
flatpak remote-modify --system flathub --no-filter --title="Flathub (System)"
8584

8685
# Cleanup & Finalize
@@ -100,6 +99,10 @@ RUN rm /usr/share/applications/shredder.desktop && \
10099
sed -i 's@enabled=1@enabled=0@g' /etc/yum.repos.d/_copr_ycollet-audinux.repo && \
101100
sed -i 's/#DefaultTimeoutStopSec.*/DefaultTimeoutStopSec=15s/' /etc/systemd/user.conf && \
102101
sed -i 's/#DefaultTimeoutStopSec.*/DefaultTimeoutStopSec=15s/' /etc/systemd/system.conf && \
102+
flatpak remove --system --noninteractive --all && \
103+
cat /etc/flatpak/install | while read line; do flatpak install --system --noninteractive --no-deploy flathub $line; done && \
104+
systemctl unmask flatpak-system-install.service && \
105+
systemctl enable flatpak-system-install.service && \
103106
systemctl disable rpm-ostreed-automatic.timer && \
104107
systemctl --global enable ublue-update.timer && \
105108
systemctl enable input-remapper.service && \
@@ -197,6 +200,8 @@ RUN rm /usr/share/applications/winetricks.desktop && \
197200
sed -i 's@enabled=1@enabled=0@g' /etc/yum.repos.d/_copr_kylegospo-wallpaper-engine-kde-plugin.repo && \
198201
sed -i 's@enabled=1@enabled=0@g' /etc/yum.repos.d/_copr_ycollet-audinux.repo && \
199202
mv /etc/sddm.conf /etc/sddm.conf.d/steamos.conf && \
203+
flatpak remove --system --noninteractive --all && \
204+
cat etc/flatpak/install | while read line; do flatpak install --system --noninteractive --no-deploy flathub $line; done && \
200205
systemctl enable plasma-autologin.service && \
201206
systemctl enable jupiter-fan-control.service && \
202207
systemctl enable vpower.service && \
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
com.github.Matoking.protontricks
2+
net.davidotek.pupgui2
3+
org.freedesktop.Platform.VulkanLayer.MangoHud//22.08
4+
org.freedesktop.Platform.VulkanLayer.vkBasalt//22.08

system_files/deck/usr/share/ublue-os/firstboot/yafti.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -134,15 +134,6 @@ screens:
134134
show_terminal: true
135135
package_manager: yafti.plugin.flatpak
136136
groups:
137-
Bazzite:
138-
description: Core Applications
139-
default: true
140-
packages:
141-
- MangoHud (Flatpak): org.freedesktop.Platform.VulkanLayer.MangoHud//22.08
142-
- Mozilla Firefox: org.mozilla.firefox
143-
- Protontricks: com.github.Matoking.protontricks
144-
- ProtonUp-Qt (Proton Updater): net.davidotek.pupgui2
145-
- vkBasalt (Flatpak): org.freedesktop.Platform.VulkanLayer.vkBasalt//22.08
146137
Web Browsers:
147138
description: Additional browsers to complement Firefox
148139
default: false
@@ -151,6 +142,7 @@ screens:
151142
- Google Chrome: com.google.Chrome
152143
- LibreWolf: io.gitlab.librewolf-community
153144
- Microsoft Edge: com.microsoft.Edge
145+
- Mozilla Firefox: org.mozilla.firefox
154146
- Opera: com.opera.Opera
155147
Gaming:
156148
description: "Rock and Stone!"
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
net.davidotek.pupgui2
2+
org.freedesktop.Platform.VulkanLayer.MangoHud//22.08
3+
org.freedesktop.Platform.VulkanLayer.vkBasalt//22.08
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[Unit]
2+
Description=Install System Flatpak on boot
3+
Documentation=https://github.com/ublue-os/endlish-oesque/issues/10
4+
5+
[Service]
6+
Type=oneshot
7+
ExecStart=/usr/bin/ublue-flatpak-system-install
8+
9+
[Install]
10+
WantedBy=multi-user.target
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
cat /etc/flatpaks | while read line; do
4+
flatpak install --system --noninteractive --no-pull flathub $line
5+
done && mv /etc/flatpak/install /etc/flatpak/installed

system_files/desktop/usr/share/ublue-os/firstboot/yafti.yml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -97,18 +97,6 @@ screens:
9797
applications:
9898
source: yafti.screen.package
9999
values:
100-
title: Application Installation
101-
show_terminal: true
102-
package_manager: yafti.plugin.flatpak
103-
groups:
104-
Bazzite:
105-
description: Core Applications
106-
default: true
107-
packages:
108-
- MangoHud (Flatpak): org.freedesktop.Platform.VulkanLayer.MangoHud//22.08
109-
- Mozilla Firefox: org.mozilla.firefox
110-
- ProtonUp-Qt (Proton Updater): net.davidotek.pupgui2
111-
- vkBasalt (Flatpak): org.freedesktop.Platform.VulkanLayer.vkBasalt//22.08
112100
Web Browsers:
113101
description: Additional browsers to complement Firefox
114102
default: false
@@ -117,6 +105,7 @@ screens:
117105
- Google Chrome: com.google.Chrome
118106
- LibreWolf: io.gitlab.librewolf-community
119107
- Microsoft Edge: com.microsoft.Edge
108+
- Mozilla Firefox: org.mozilla.firefox
120109
- Opera: com.opera.Opera
121110
Gaming:
122111
description: "Rock and Stone!"

0 commit comments

Comments
 (0)