Replace systemd timers with startAt
This commit is contained in:
parent
63a9fb80a1
commit
7af1063f1f
|
@ -15,16 +15,8 @@ in {
|
|||
cd "$base_folder" || exit
|
||||
ls | xargs -P10 -I{} git -C {} pull --rebase
|
||||
'';
|
||||
serviceConfig = { Type = "oneshot"; };
|
||||
};
|
||||
|
||||
systemd.user.timers.git-pull = {
|
||||
description = "Daily code update";
|
||||
wantedBy = [ "default.target" ];
|
||||
timerConfig = {
|
||||
OnCalendar = "22:00:00";
|
||||
Unit = "git-pull.service";
|
||||
};
|
||||
serviceConfig.Type = "oneshot";
|
||||
OnCalendar = "22:00:00";
|
||||
};
|
||||
|
||||
# PostgreSQL daily backups
|
||||
|
@ -47,14 +39,7 @@ in {
|
|||
chown -R dnsmasq ${stateDir}
|
||||
systemctl restart dnsmasq
|
||||
'';
|
||||
startAt = "02:00:00";
|
||||
};
|
||||
|
||||
systemd.timers.download-dns-blocklist = {
|
||||
description = "Daily download of hosts-blocklists";
|
||||
wantedBy = [ "default.target" ];
|
||||
timerConfig = {
|
||||
OnCalendar = "02:00:00";
|
||||
Unit = "download-dns-blocklist.service";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue