Autoupdate Flatpaks

src: https://en.opensuse.org/Flatpak#:~:text=Automatically%20update%20flatpaks%20with%20KDE,handle%20this%20automatically%20for%20you.

At a user level:

Create the updater service

systemctl --user edit --full --force flatpak-user-update.service
[Unit]
Description=Flatpak Automatic Update
Documentation=man:flatpak(1)
Wants=network-online.target
After=network-online.target

[Service]
Type=oneshot
ExecStart=/usr/bin/flatpak --user update -y --noninteractive

[Install]
WantedBy=multi-user.target
systemctl --user edit --full --force flatpak-user-update.timer

Install a timer (configure time)

[Unit]
Description=Flatpak Automatic Update Trigger
Documentation=man:flatpak(1)

[Timer]
OnBootSec=5m
OnCalendar=0/6:00:00
Persistent=true

[Install]
WantedBy=timers.target

Enable the timer

systemctl --user daemon-reload
systemctl --user enable --now flatpak-user-update.timer