diff --git a/config-root.yaml b/config-root.yaml index f08ce2f..a9444d6 100644 --- a/config-root.yaml +++ b/config-root.yaml @@ -92,6 +92,12 @@ dotfiles: f_ignore: src: .ignore dst: /.ignore + f_pacman-dl.service: + src: etc/systemd/system/pacman-dl.service + dst: /etc/systemd/system/pacman-dl.service + f_pacman-dl.timer: + src: etc/systemd/system/pacman-dl.timer + dst: /etc/systemd/system/pacman-dl.timer profiles: locale: dotfiles: @@ -126,6 +132,8 @@ profiles: - f_sleep.conf - f_fstab - f_ignore + - f_pacman-dl.service + - f_pacman-dl.timer include: - locale - pacman diff --git a/root/etc/systemd/system/pacman-dl.service b/root/etc/systemd/system/pacman-dl.service new file mode 100755 index 0000000..43611ee --- /dev/null +++ b/root/etc/systemd/system/pacman-dl.service @@ -0,0 +1,10 @@ +[Unit] +Description=Download package updates +After=network-online.target + +[Service] +Type=oneshot +ExecStart=/usr/bin/pacman -Syuw --noconfirm + +[Install] +WantedBy=network-online.target diff --git a/root/etc/systemd/system/pacman-dl.timer b/root/etc/systemd/system/pacman-dl.timer new file mode 100644 index 0000000..d1ff519 --- /dev/null +++ b/root/etc/systemd/system/pacman-dl.timer @@ -0,0 +1,5 @@ +[Unit] +Description=Download packages hourly + +[Timer] +OnCalendar=hourly