nixos/hydron: Various tweaks
Make timer persistent Start timer after hydron Change interval from hourly to weekly
This commit is contained in:
parent
44a4370b1f
commit
aba87b85ef
|
@ -16,10 +16,10 @@ in with lib; {
|
||||||
|
|
||||||
interval = mkOption {
|
interval = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
default = "hourly";
|
default = "weekly";
|
||||||
example = "06:00";
|
example = "06:00";
|
||||||
description = ''
|
description = ''
|
||||||
How often we run hydron import and possibly fetch tags. Runs by default every hour.
|
How often we run hydron import and possibly fetch tags. Runs by default every week.
|
||||||
|
|
||||||
The format is described in
|
The format is described in
|
||||||
<citerefentry><refentrytitle>systemd.time</refentrytitle>
|
<citerefentry><refentrytitle>systemd.time</refentrytitle>
|
||||||
|
@ -137,9 +137,13 @@ in with lib; {
|
||||||
|
|
||||||
systemd.timers.hydron-fetch = {
|
systemd.timers.hydron-fetch = {
|
||||||
description = "Automatically import paths into hydron and possibly fetch tags";
|
description = "Automatically import paths into hydron and possibly fetch tags";
|
||||||
after = [ "network.target" ];
|
after = [ "network.target" "hydron.service" ];
|
||||||
wantedBy = [ "timers.target" ];
|
wantedBy = [ "timers.target" ];
|
||||||
timerConfig.OnCalendar = cfg.interval;
|
|
||||||
|
timerConfig = {
|
||||||
|
Persistent = true;
|
||||||
|
OnCalendar = cfg.interval;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
users = {
|
users = {
|
||||||
|
|
Loading…
Reference in New Issue