From dfc6d4f4e2daa8d8b71787df354228140d1854d0 Mon Sep 17 00:00:00 2001 From: kat witch Date: Tue, 18 May 2021 08:07:16 +0100 Subject: [PATCH] ci: Fixed niv-cron erroring on repo unavailability, I curse those with unreliable infrastructure --- ci/niv-cron.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ci/niv-cron.nix b/ci/niv-cron.nix index bdc9934f..ebc33698 100644 --- a/ci/niv-cron.nix +++ b/ci/niv-cron.nix @@ -25,7 +25,9 @@ with lib; { mkdir ~/.ssh echo "$OPENSSH_PRIVATE_KEY" > ~/.ssh/id_rsa chmod 0600 ~/.ssh/id_rsa - nix run -f . pkgs.niv -c niv update + for source in $(cat nix/sources.json | jq -r 'keys[]'); do + nix run -f . pkgs.niv -c niv update $source 2>&1 >/dev/null + done if git status --porcelain | grep -qF nix/sources.json ; then if nix build -Lf . hosts.{athame,yule,samhain}.config.system.build.toplevel; then git add nix/sources.json