mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-11-09 18:47:02 +00:00
deploy: make check-updates nicer
This commit is contained in:
parent
03a4d4f4b8
commit
0771a609fa
1 changed files with 2 additions and 7 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue