diff --git a/systemd/.config/systemd/user/pikaur-cleanup.service b/systemd/.config/systemd/user/pikaur-cleanup.service new file mode 100644 index 0000000..a77969d --- /dev/null +++ b/systemd/.config/systemd/user/pikaur-cleanup.service @@ -0,0 +1,7 @@ +[Unit] +Description=Clean up locally built pikaur packages + +[Service] +Type=oneshot +ExecStart=/usr/bin/paccache -c %h/.cache/pikaur/pkg -r --nocolor -v +ExecStart=/usr/bin/paccache -c %h/.cache/pikaur/pkg -r --nocolor -v -u -k0 diff --git a/systemd/.config/systemd/user/pikaur-cleanup.timer b/systemd/.config/systemd/user/pikaur-cleanup.timer new file mode 100644 index 0000000..c7428be --- /dev/null +++ b/systemd/.config/systemd/user/pikaur-cleanup.timer @@ -0,0 +1,9 @@ +[Unit] +Description=Periodically clean pikaur pkgs + +[Timer] +Persistent=True +OnCalendar=weekly + +[Install] +WantedBy=timers.target