nixos-module.nix: add timer
This commit is contained in:
parent
ac550e169f
commit
f27005e7dd
|
@ -99,6 +99,13 @@ in
|
||||||
Group = cfg.group;
|
Group = cfg.group;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
systemd.timers.ticker-update = {
|
||||||
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
partOf = [ "ticker-update.service" ];
|
||||||
|
timerConfig = {
|
||||||
|
OnCalendar = cfg.updateInterval;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
systemd.services.ticker-serve = {
|
systemd.services.ticker-serve = {
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
|
Loading…
Reference in New Issue