From 5b42284e2039d8550ab3c38ab3abcfdaa096e238 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Isma=C3=ABl=20Bouya?= Date: Mon, 7 Sep 2020 08:52:59 +0200 Subject: [PATCH] Disable duply backups --- modules/private/monitoring/objects_monitoring-1.nix | 5 +++-- modules/private/system/eldiron.nix | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/private/monitoring/objects_monitoring-1.nix b/modules/private/monitoring/objects_monitoring-1.nix index fdee811..94b676b 100644 --- a/modules/private/monitoring/objects_monitoring-1.nix +++ b/modules/private/monitoring/objects_monitoring-1.nix @@ -1,5 +1,6 @@ { config, pkgs, nodes, hostFQDN, emailCheck, lib, ... }: let + to_resource = func: cfg: lib.flatten (lib.optionals cfg.enable (lib.mapAttrsToList func cfg.profiles)); to_backup_age_dependency = name: profile: map (remote: { dependent_host_name = "eldiron.immae.eu"; @@ -695,7 +696,7 @@ in contact_groups = "tiboqorl"; check_command = [ "check_https" "sc.groupe-cyllene.com" "/" "Support Client Cyllene" ]; } - ] ++ lib.flatten (lib.mapAttrsToList to_backup_age nodes.eldiron.config.services.duplyBackup.profiles); + ] ++ to_resource to_backup_age nodes.eldiron.config.services.duplyBackup; contact = { telio-tortay = config.myEnv.monitoring.contacts.telio-tortay // { use = "generic-contact"; @@ -710,5 +711,5 @@ in telio-tortay = { alias = "Telio Tortay"; members = "immae"; }; tiboqorl = { alias = "Tiboqorl"; members = "immae"; }; }; - servicedependency = lib.flatten (lib.mapAttrsToList to_backup_age_dependency nodes.eldiron.config.services.duplyBackup.profiles); + servicedependency = to_resource to_backup_age_dependency nodes.eldiron.config.services.duplyBackup; } diff --git a/modules/private/system/eldiron.nix b/modules/private/system/eldiron.nix index bb8bbfc..04cfb76 100644 --- a/modules/private/system/eldiron.nix +++ b/modules/private/system/eldiron.nix @@ -93,7 +93,7 @@ myServices.ejabberd.enable = true; myServices.vpn.enable = true; services.pure-ftpd.enable = true; - services.duplyBackup.enable = true; + services.duplyBackup.enable = false; services.duplyBackup.profiles.oldies.rootDir = "/var/lib/oldies"; secrets.keys = [ -- 2.41.0