summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin Gassner <justin.gassner@mailbox.org>2024-04-03 22:51:08 +0200
committerJustin Gassner <justin.gassner@mailbox.org>2024-04-03 22:51:08 +0200
commit8857e1b99bf7125c2b127e2d602abda8cd03b74d (patch)
treed365223b28045d30d57232feb338465e0ce84cab
downloadarch-config-8857e1b99bf7125c2b127e2d602abda8cd03b74d.tar.zst
Initial commit
-rw-r--r--etc/systemd/journald.conf.d/override.conf2
-rw-r--r--etc/systemd/system/checkupdates.service8
-rw-r--r--etc/systemd/system/checkupdates.timer10
-rw-r--r--etc/systemd/system/paccache.service.d/override.conf4
l---------etc/systemd/system/sysinit.target.wants/systemd-timesyncd.service1
l---------etc/systemd/system/timers.target.wants/checkupdates.timer1
l---------etc/systemd/system/timers.target.wants/fstrim.timer1
l---------etc/systemd/system/timers.target.wants/paccache.timer1
l---------etc/systemd/system/timers.target.wants/plocate-updatedb.timer1
9 files changed, 29 insertions, 0 deletions
diff --git a/etc/systemd/journald.conf.d/override.conf b/etc/systemd/journald.conf.d/override.conf
new file mode 100644
index 0000000..b150f65
--- /dev/null
+++ b/etc/systemd/journald.conf.d/override.conf
@@ -0,0 +1,2 @@
+[Journal]
+SystemMaxUse=50M
diff --git a/etc/systemd/system/checkupdates.service b/etc/systemd/system/checkupdates.service
new file mode 100644
index 0000000..a7a1356
--- /dev/null
+++ b/etc/systemd/system/checkupdates.service
@@ -0,0 +1,8 @@
+[Unit]
+Description=Check for updates and download packages
+Wants=network-online.target
+After=network-online.target
+
+[Service]
+Type=oneshot
+ExecStart=-checkupdates -d
diff --git a/etc/systemd/system/checkupdates.timer b/etc/systemd/system/checkupdates.timer
new file mode 100644
index 0000000..cceca58
--- /dev/null
+++ b/etc/systemd/system/checkupdates.timer
@@ -0,0 +1,10 @@
+[Unit]
+Description=Check for updates and download packages
+
+[Timer]
+OnCalendar=hourly
+RandomizedDelaySec=5min
+Persistent=true
+
+[Install]
+WantedBy=timers.target
diff --git a/etc/systemd/system/paccache.service.d/override.conf b/etc/systemd/system/paccache.service.d/override.conf
new file mode 100644
index 0000000..a0f881b
--- /dev/null
+++ b/etc/systemd/system/paccache.service.d/override.conf
@@ -0,0 +1,4 @@
+[Service]
+ExecStart=
+ExecStart=/usr/bin/paccache -rk1
+ExecStart=/usr/bin/paccache -ruk0
diff --git a/etc/systemd/system/sysinit.target.wants/systemd-timesyncd.service b/etc/systemd/system/sysinit.target.wants/systemd-timesyncd.service
new file mode 120000
index 0000000..cd00411
--- /dev/null
+++ b/etc/systemd/system/sysinit.target.wants/systemd-timesyncd.service
@@ -0,0 +1 @@
+/usr/lib/systemd/system/systemd-timesyncd.service \ No newline at end of file
diff --git a/etc/systemd/system/timers.target.wants/checkupdates.timer b/etc/systemd/system/timers.target.wants/checkupdates.timer
new file mode 120000
index 0000000..be5e08b
--- /dev/null
+++ b/etc/systemd/system/timers.target.wants/checkupdates.timer
@@ -0,0 +1 @@
+/etc/systemd/system/checkupdates.timer \ No newline at end of file
diff --git a/etc/systemd/system/timers.target.wants/fstrim.timer b/etc/systemd/system/timers.target.wants/fstrim.timer
new file mode 120000
index 0000000..06b7de8
--- /dev/null
+++ b/etc/systemd/system/timers.target.wants/fstrim.timer
@@ -0,0 +1 @@
+/usr/lib/systemd/system/fstrim.timer \ No newline at end of file
diff --git a/etc/systemd/system/timers.target.wants/paccache.timer b/etc/systemd/system/timers.target.wants/paccache.timer
new file mode 120000
index 0000000..1f5ee4f
--- /dev/null
+++ b/etc/systemd/system/timers.target.wants/paccache.timer
@@ -0,0 +1 @@
+/usr/lib/systemd/system/paccache.timer \ No newline at end of file
diff --git a/etc/systemd/system/timers.target.wants/plocate-updatedb.timer b/etc/systemd/system/timers.target.wants/plocate-updatedb.timer
new file mode 120000
index 0000000..b277477
--- /dev/null
+++ b/etc/systemd/system/timers.target.wants/plocate-updatedb.timer
@@ -0,0 +1 @@
+/usr/lib/systemd/system/plocate-updatedb.timer \ No newline at end of file