From 1e4954390798bff6ebebcd0f1a989d21cca3f73a Mon Sep 17 00:00:00 2001
From: coolneng <akasroua@gmail.com>
Date: Thu, 29 Apr 2021 16:47:47 +0200
Subject: [PATCH] Replace systemd time with startAt

---
 modules/periodic.nix | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/modules/periodic.nix b/modules/periodic.nix
index b4faef4..a36715a 100644
--- a/modules/periodic.nix
+++ b/modules/periodic.nix
@@ -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";
     };
   };
 }