From f91f9c763484a17a8222fd21e39ae48944c53ab7 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 8 Nov 2022 08:59:28 +0100 Subject: ... --- hosts/vidhar/borg/default.nix | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'hosts/vidhar') diff --git a/hosts/vidhar/borg/default.nix b/hosts/vidhar/borg/default.nix index 5e983434..dfd4885e 100644 --- a/hosts/vidhar/borg/default.nix +++ b/hosts/vidhar/borg/default.nix @@ -71,26 +71,26 @@ in { in filter (v: v != null) (mapAttrsToList toAuthKey (builtins.readDir dir)); }; - systemd.services."check-borg@${utils.escapeSystemdPath "/srv/backup/borg/jotnar"}" = checkBorgUnit; - systemd.services."check-borg@${utils.escapeSystemdPath "yggdrasil.borgbase:repo"}" = recursiveUpdate checkBorgUnit { - serviceConfig = { - Environment = checkBorgUnit.serviceConfig.Environment ++ [ - "BORG_KEY_FILE=${config.sops.secrets."yggdrasil.borgkey".path}" - ]; - }; - }; - systemd.timers."check-borg@${utils.escapeSystemdPath "/srv/backup/borg/jotnar"}" = { - wantedBy = [ "timers.target" ]; - timerConfig = { - OnCalendar = "*-*-* 00:30:00 UTC"; - }; - }; - systemd.timers."check-borg@${utils.escapeSystemdPath "yggdrasil.borgbase:repo"}" = { - wantedBy = [ "timers.target" ]; - timerConfig = { - OnCalendar = "*-*-* 00:30:00 UTC"; - }; - }; + # systemd.services."check-borg@${utils.escapeSystemdPath "/srv/backup/borg/jotnar"}" = checkBorgUnit; + # systemd.services."check-borg@${utils.escapeSystemdPath "yggdrasil.borgbase:repo"}" = recursiveUpdate checkBorgUnit { + # serviceConfig = { + # Environment = checkBorgUnit.serviceConfig.Environment ++ [ + # "BORG_KEY_FILE=${config.sops.secrets."yggdrasil.borgkey".path}" + # ]; + # }; + # }; + # systemd.timers."check-borg@${utils.escapeSystemdPath "/srv/backup/borg/jotnar"}" = { + # wantedBy = [ "timers.target" ]; + # timerConfig = { + # OnCalendar = "*-*-* 00:30:00 UTC"; + # }; + # }; + # systemd.timers."check-borg@${utils.escapeSystemdPath "yggdrasil.borgbase:repo"}" = { + # wantedBy = [ "timers.target" ]; + # timerConfig = { + # OnCalendar = "*-*-* 00:30:00 UTC"; + # }; + # }; boot.postBootCommands = mkBefore '' ${pkgs.findutils}/bin/find /srv/backup/borg -type d -empty -delete -- cgit v1.2.3