mirror of
https://github.com/bertptrs/vimconfig.git
synced 2025-12-25 12:30:32 +01:00
Use default method of cleaning up user tmpfiles
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -7,5 +7,4 @@ vim/.vim/.netrwhist
|
|||||||
zsh/.config/zsh/.chpwd-recent-dirs
|
zsh/.config/zsh/.chpwd-recent-dirs
|
||||||
|
|
||||||
# Ignore the installation of services for now.
|
# Ignore the installation of services for now.
|
||||||
systemd/.config/systemd/user/default.target.wants
|
systemd/.config/systemd/user/*.target.wants
|
||||||
systemd/.config/systemd/user/timers.target.wants
|
|
||||||
|
|||||||
@@ -1,9 +0,0 @@
|
|||||||
[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
|
|
||||||
ExecStart=/usr/bin/paccache -c %h/.cache/pacman/pkgs -r --nocolor -v
|
|
||||||
ExecStart=/usr/bin/paccache -c %h/.cache/pacman/pkgs -r --nocolor -v -u -k0
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=Periodically clean pikaur pkgs
|
|
||||||
|
|
||||||
[Timer]
|
|
||||||
Persistent=True
|
|
||||||
OnCalendar=weekly
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=timers.target
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=Cleanup of temporary files
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=oneshot
|
|
||||||
ExecStart=/bin/systemd-tmpfiles --root=%h --clean %h/.config/tmpfiles/tmpfiles.conf
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=default.target
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
#Type Path Mode UID GID Age Argument
|
|
||||||
e /.cache/spotify - - - 30d -
|
|
||||||
e /.cache/chromium - - - 30d -
|
|
||||||
e /.cache/mozilla - - - 30d -
|
|
||||||
e /Downloads - - - 7d -
|
|
||||||
6
systemd/.config/user-tmpfiles/tmpfiles.conf
Normal file
6
systemd/.config/user-tmpfiles/tmpfiles.conf
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
#Type Path Mode UID GID Age Argument
|
||||||
|
e %C/spotify - - - 30d -
|
||||||
|
e %C/chromium - - - 30d -
|
||||||
|
e %C/mozilla - - - 30d -
|
||||||
|
e %C/pacman - - - 30d -
|
||||||
|
e %h/Downloads - - - 7d -
|
||||||
Reference in New Issue
Block a user