diff options
author | Okina Matara <okinan@chiru.no> | 2018-08-14 23:19:31 -0500 |
---|---|---|
committer | Okina Matara <okinan@chiru.no> | 2018-08-15 22:00:13 -0500 |
commit | aba87b85efaa1b2b31176ecbad4f6bf9a82f5d4a (patch) | |
tree | d7981d9577bc38a5d60fd5b3c13b84028ee48062 /nixos/modules/services/web-servers | |
parent | 44a4370b1f3aa2b1b2416d8c09b8df6900f5c449 (diff) | |
download | nixlib-aba87b85efaa1b2b31176ecbad4f6bf9a82f5d4a.tar nixlib-aba87b85efaa1b2b31176ecbad4f6bf9a82f5d4a.tar.gz nixlib-aba87b85efaa1b2b31176ecbad4f6bf9a82f5d4a.tar.bz2 nixlib-aba87b85efaa1b2b31176ecbad4f6bf9a82f5d4a.tar.lz nixlib-aba87b85efaa1b2b31176ecbad4f6bf9a82f5d4a.tar.xz nixlib-aba87b85efaa1b2b31176ecbad4f6bf9a82f5d4a.tar.zst nixlib-aba87b85efaa1b2b31176ecbad4f6bf9a82f5d4a.zip |
nixos/hydron: Various tweaks
Make timer persistent Start timer after hydron Change interval from hourly to weekly
Diffstat (limited to 'nixos/modules/services/web-servers')
-rw-r--r-- | nixos/modules/services/web-servers/hydron.nix | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/nixos/modules/services/web-servers/hydron.nix b/nixos/modules/services/web-servers/hydron.nix index c49efaede160..ed63230bc784 100644 --- a/nixos/modules/services/web-servers/hydron.nix +++ b/nixos/modules/services/web-servers/hydron.nix @@ -16,10 +16,10 @@ in with lib; { interval = mkOption { type = types.str; - default = "hourly"; + default = "weekly"; example = "06:00"; 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 <citerefentry><refentrytitle>systemd.time</refentrytitle> @@ -137,9 +137,13 @@ in with lib; { systemd.timers.hydron-fetch = { description = "Automatically import paths into hydron and possibly fetch tags"; - after = [ "network.target" ]; + after = [ "network.target" "hydron.service" ]; wantedBy = [ "timers.target" ]; - timerConfig.OnCalendar = cfg.interval; + + timerConfig = { + Persistent = true; + OnCalendar = cfg.interval; + }; }; users = { |