Replace systemd time with startAt
This commit is contained in:
parent
8666cc0a1f
commit
1e49543907
|
@ -25,14 +25,10 @@ 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