diff options
author | lassulus <lass@aidsballs.de> | 2016-03-16 09:16:41 +0100 |
---|---|---|
committer | lassulus <lass@aidsballs.de> | 2016-03-16 09:16:41 +0100 |
commit | 9e9bc01fc974781091dcb06085952acd0b9a191c (patch) | |
tree | 3b16aa7fe69bf79d967ca11a4fc3efa336000cf7 /krebs/3modules/backup.nix | |
parent | 6eedc423e3df2c1357fa23cb3fb5e67dc895a4fa (diff) | |
parent | 04ba4784ae0918fe9e79af5c95bace3cf8605792 (diff) |
Merge remote-tracking branch 'gum/master'
Diffstat (limited to 'krebs/3modules/backup.nix')
-rw-r--r-- | krebs/3modules/backup.nix | 6 |
1 files changed, 6 insertions, 0 deletions
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 |