From 18aa0c5687d9b047b06ad00132d6881bce1a74a0 Mon Sep 17 00:00:00 2001 From: Soispha Date: Mon, 31 Jul 2023 23:03:06 +0200 Subject: Fix(system/services/nix-sync): Make the timer relative to the unit start The timer before hand started `repo.interval` after it self was started, i.e., it was a oneshot timer. This change now fixes this by make the point the timer activates relative to the time elapsed, since the associated unit was last started. --- system/services/nix-sync/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system/services/nix-sync') diff --git a/system/services/nix-sync/default.nix b/system/services/nix-sync/default.nix index 44348c0..482c268 100644 --- a/system/services/nix-sync/default.nix +++ b/system/services/nix-sync/default.nix @@ -10,7 +10,7 @@ description = "Nix sync ${name} timer"; wantedBy = ["timers.target"]; timerConfig = { - OnActiveSec = repo.interval; + OnUnitActiveSec = repo.interval; }; after = ["network-online.target"]; }; -- cgit 1.4.1