From f27005e7dd26c433a4b63ef59b379315b111a8ab Mon Sep 17 00:00:00 2001 From: Astro Date: Wed, 28 Oct 2020 09:09:53 +0100 Subject: [PATCH] nixos-module.nix: add timer --- nixos-module.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nixos-module.nix b/nixos-module.nix index 48a84be..d5a2eb3 100644 --- a/nixos-module.nix +++ b/nixos-module.nix @@ -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" ];