Do not GC host closures in CI

This commit is contained in:
kat witch 2021-08-10 01:31:27 +01:00
parent ab5b8ad2bb
commit 42e33c6e14
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72

View file

@ -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