Browse Source

nixos-module.nix: add timer

master
Astro 10 months ago
parent
commit
f27005e7dd
1 changed files with 7 additions and 0 deletions
  1. 7
    0
      nixos-module.nix

+ 7
- 0
nixos-module.nix View File

@@ -99,6 +99,13 @@ in
99 99
         Group = cfg.group;
100 100
       };
101 101
     };
102
+    systemd.timers.ticker-update = {
103
+      wantedBy = [ "multi-user.target" ];
104
+      partOf = [ "ticker-update.service" ];
105
+      timerConfig = {
106
+        OnCalendar = cfg.updateInterval;
107
+      };
108
+    };
102 109
 
103 110
     systemd.services.ticker-serve = {
104 111
       wantedBy = [ "multi-user.target" ];

Loading…
Cancel
Save