File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed
system/usr/lib/systemd/system Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,12 @@ dnf -y install \
4141 wl-clipboard \
4242 zsh
4343
44+ # flatpak
45+
46+ mkdir -p /etc/flatpak/remotes.d/
47+ curl --retry 3 -Lo /etc/flatpak/remotes.d/flathub.flatpakrepo https://dl.flathub.org/repo/flathub.flatpakrepo
48+ mv -f /usr/lib/systemd/system/enable-flathub.service /usr/lib/systemd/system/flatpak-add-fedora-repos.service
49+
4450# podman
4551
4652mkdir -p /etc/containers
Original file line number Diff line number Diff line change 1+ [Unit]
2+ Description =Add Flathub flatpak repositories.
3+ ConditionPathExists =!/var/lib/flatpak/.flathub-added
4+ Before =flatpak-system-helper.service
5+
6+ [Service]
7+ Type =oneshot
8+ RemainAfterExit =yes
9+ ExecStart =/usr/bin/flatpak remote-add --system --if-not-exists flathub /etc/flatpak/remotes.d/flathub.flatpakrepo
10+ ExecStart =/usr/bin/flatpak remote-add --system --if-not-exists --disable --title "Fedora Flatpaks" fedora oci+https://registry.fedoraproject.org
11+ ExecStart =/usr/bin/flatpak remote-add --system --if-not-exists --disable --title "Fedora Flatpaks (testing)" fedora-testing oci+https://registry.fedoraproject.org#testing
12+ ExecStartPost =/usr/bin/touch /var/lib/flatpak/.flathub-added
13+
14+ [Install]
15+ WantedBy =multi-user.target
You can’t perform that action at this time.
0 commit comments