feat: nuke fedora flatpaks on boot (#1208)

* feat: nuke fedora flatpaks

* start the service on boot

* remove extra space :C

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
inffy 2025-10-30 19:23:58 +02:00 committed by GitHub
parent 4e1353822b
commit 28adc2ecb2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 23 additions and 0 deletions

View file

@ -24,6 +24,9 @@ systemctl --global enable podman-auto-update.timer
systemctl enable check-sb-key.service
systemctl enable input-remapper.service
# Nuke possible Fedora flatpak repos
systemctl enable flatpak-nuke-fedora.service
# TODO: Reinvestigate when bazaar gains dbus activation
systemctl --global enable bazaar.service

View file

@ -0,0 +1,20 @@
[Unit]
Description=Remove Fedora flatpak repositories
Before=flatpak-preinstall.service
Before=flatpak-system-helper.service
# Make sure we run before the Fedora service if it exists
Before=flatpak-add-fedora-repos.service
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/flatpak remote-delete --system fedora
ExecStart=/usr/bin/flatpak remote-delete --system fedora-testing
# Make sure even if flatpak-add-fedora-repos.service exists, it
# won't run.
ExecStart=/usr/bin/touch /var/lib/flatpak/.fedora-initialized
# Flatpak will fail if the remote doesn't exist, but we don't mind
SuccessExitStatus=1
[Install]
WantedBy=multi-user.target