From 42e33c6e140a79b864bb710e260d3c821cfc2499 Mon Sep 17 00:00:00 2001 From: kat witch Date: Tue, 10 Aug 2021 01:31:27 +0100 Subject: [PATCH] Do not GC host closures in CI --- ci/niv-cron.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/niv-cron.nix b/ci/niv-cron.nix index b5116ffd..91e6983b 100644 --- a/ci/niv-cron.nix +++ b/ci/niv-cron.nix @@ -51,7 +51,7 @@ with lib; { targets = main.deploy.targets; enabledTargets = filterAttrs (_: v: v.enable) main.deploy.targets; enabledHosts = concatLists (mapAttrsToList (targetName: target: target.nodeNames) enabledTargets); - hostBuildString = concatMapStringsSep " && " (host: "nix build -Lf . network.nodes.${host}.deploy.system && nix-collect-garbage -d") enabledHosts; + hostBuildString = concatMapStringsSep " && " (host: "nix build -Lf . network.nodes.${host}.deploy.system -o result-${host} && nix-collect-garbage -d") enabledHosts; in '' # ${toString builtins.currentTime} if [[ -n $OPENSSH_PRIVATE_KEY ]]; then