diff options
author | Soispha <soispha@vhack.eu> | 2023-07-31 23:03:06 +0200 |
---|---|---|
committer | Soispha <soispha@vhack.eu> | 2023-08-02 16:19:25 +0200 |
commit | 18aa0c5687d9b047b06ad00132d6881bce1a74a0 (patch) | |
tree | 09c01f5bcd86096fec35a593f3b95b72b96fd466 | |
parent | Feat(system/services/nginx/hosts): Add another domain (diff) | |
download | nixos-server-18aa0c5687d9b047b06ad00132d6881bce1a74a0.tar.gz nixos-server-18aa0c5687d9b047b06ad00132d6881bce1a74a0.zip |
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.
-rw-r--r-- | system/services/nix-sync/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
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"]; }; |