nixos-module.nix: add timer

This commit is contained in:
Astro 2020-10-28 09:09:53 +01:00
父節點 ac550e169f
當前提交 f27005e7dd
共有 1 個檔案被更改,包括 7 行新增0 行删除

查看文件

@ -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" ];