diff --git a/clanModules/borgbackup/roles/client.nix b/clanModules/borgbackup/roles/client.nix index 73a29f84a..105f717c7 100644 --- a/clanModules/borgbackup/roles/client.nix +++ b/clanModules/borgbackup/roles/client.nix @@ -152,7 +152,7 @@ in # we need yes here to skip the changed url verification ''yes y | borg-job-${dest.name} list --json | jq '[.archives[] | {"name": ("${dest.name}::${dest.repo}::" + .name)}]' '' ) (lib.attrValues cfg.destinations) - }) | ${pkgs.jq}/bin/jq -s 'add' + }) | ${pkgs.jq}/bin/jq -s 'add // []' '') (pkgs.writeShellScriptBin "borgbackup-restore" '' set -efux