From 13df24f8f09469c32077ded463d99033042e25ee Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 15 Mar 2016 15:59:05 +0100 Subject: krebs.backup: use krebs.on-failure --- krebs/3modules/backup.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/krebs/3modules/backup.nix b/krebs/3modules/backup.nix index 97082f56a..d22dd3810 100644 --- a/krebs/3modules/backup.nix +++ b/krebs/3modules/backup.nix @@ -60,6 +60,12 @@ let }; imp = { + krebs.on-failure.plans = + listToAttrs (map (plan: nameValuePair "backup.${plan.name}" { + }) (filter (plan: build-host-is "pull" "dst" plan || + build-host-is "push" "src" plan) + enabled-plans)); + systemd.services = listToAttrs (map (plan: nameValuePair "backup.${plan.name}" { # TODO if there is plan.user, then use its privkey -- cgit v1.2.3