From e9bede999cf6a2117b184c358f4227fb65f0b7f0 Mon Sep 17 00:00:00 2001 From: sils Date: Sat, 13 Jan 2024 15:18:35 +0100 Subject: (sys/services/restic): add timerConfig --- sys/services/restic/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sys/services') diff --git a/sys/services/restic/default.nix b/sys/services/restic/default.nix index a1bcdf6..2231b2a 100644 --- a/sys/services/restic/default.nix +++ b/sys/services/restic/default.nix @@ -29,6 +29,12 @@ "rclone.program='ssh -p 23 ${boxUser}@${boxUser}.your-storagebox.de -i ${config.age.secrets.resticssh.path}'" ]; repository = "rclone: "; # There is only one repository served + timerConfig = { + Requires = "network-online.target"; + OnUnitActiveSec = "30m"; + OnUnitInactiveSec = "2h"; + Persistent = true; + }; }; }; } -- cgit 1.4.1