systemd/user: attempt to flatpak-update-user.{service,timer}

This commit is contained in:
Aminda Suomalainen 2024-04-26 13:03:05 +03:00
parent b8f720fa7f
commit b36fe67bc3
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,7 @@
[Unit]
Description=Install user level flatpak updates and uninstall unused flatpaks
[Service]
Type=oneshot
ExecStart=/usr/bin/flatpak update --user --assumeyes --noninteractive
ExecStartPost=/usr/bin/flatpak uninstall --user --unused --assumeyes --noninteractive

View File

@ -0,0 +1,15 @@
[Unit]
Description=Install user level flatpak updates and uninstall unused flatpaks regularly
[Timer]
#OnCalendar=*-*-* 19:00:00
# Executed every 4 hours
OnUnitActiveSec=4h
# Executed 5 minutes from boot
OnBootSec=300
# Delay execution by something between 0 seconds and 3 hours
RandomizedDelaySec=3h
Persistent=true
[Install]
WantedBy=timers.target