Flake lock updates, flake-cron exclude two hosts

This commit is contained in:
kat witch 2021-11-21 22:51:08 +00:00 committed by kat
parent c84698069a
commit b3d8fb59e1
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
3 changed files with 15 additions and 14 deletions

View file

@ -98,7 +98,8 @@ 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 -o result-${host} && nix-collect-garbage -d") enabledHosts;
filteredHosts = subtractLists enabledHosts [ "daiyousei" "shinmyoumaru" ];
hostBuildString = concatMapStringsSep " && " (host: "nix build -Lf . network.nodes.${host}.deploy.system -o result-${host} && nix-collect-garbage -d") filteredHosts;
in
''
# ${toString builtins.currentTime}