niv-cron sep fix

This commit is contained in:
kat witch 2021-08-08 21:45:42 +01:00
parent 15c6902491
commit 95dc7b1cb6
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 = concatMapStrings (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 && nix-collect-garbage -d") enabledHosts;
in ''
# ${toString builtins.currentTime}
if [[ -n $OPENSSH_PRIVATE_KEY ]]; then