deploy: make check-updates nicer

This commit is contained in:
Sean Buckley 2022-01-02 17:34:13 -05:00
parent 03a4d4f4b8
commit 0771a609fa

View file

@ -63,13 +63,8 @@ let
set -eu set -eu
export SSH_CONFIG_FILE=${sshConfig} export SSH_CONFIG_FILE=${sshConfig}
c="${pkgs.colmena}/bin/colmena" c="${pkgs.colmena}/bin/colmena"
diff <( j="$($c eval -E '{nodes,...}: builtins.mapAttrs (n: v: v.config.system.build.toplevel) nodes')"
$c exec -v -- readlink /run/current-system |& grep /nix/store | sed 's/.*| //g' | sort $c exec -- '[ "$(echo '"'$j'"' | jq -r .$(hostname))" = "$(readlink /run/current-system)" ]'
) <(
$c eval -E '
{ nodes, ... }: map (x: x.config.system.build.toplevel) (builtins.attrValues nodes)
' | jq .[] -r | sort
)
''; '';
in in