nixos-module.nix: add timer

This commit is contained in:
Astro 2020-10-28 09:09:53 +01:00
vanhempi ac550e169f
commit f27005e7dd
1 muutettua tiedostoa jossa 7 lisäystä ja 0 poistoa

Näytä tiedosto

@ -99,6 +99,13 @@ in
Group = cfg.group;
};
};
systemd.timers.ticker-update = {
wantedBy = [ "multi-user.target" ];
partOf = [ "ticker-update.service" ];
timerConfig = {
OnCalendar = cfg.updateInterval;
};
};
systemd.services.ticker-serve = {
wantedBy = [ "multi-user.target" ];