mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +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
|
||||
export SSH_CONFIG_FILE=${sshConfig}
|
||||
c="${pkgs.colmena}/bin/colmena"
|
||||
diff <(
|
||||
$c exec -v -- readlink /run/current-system |& grep /nix/store | sed 's/.*| //g' | sort
|
||||
) <(
|
||||
$c eval -E '
|
||||
{ nodes, ... }: map (x: x.config.system.build.toplevel) (builtins.attrValues nodes)
|
||||
' | jq .[] -r | sort
|
||||
)
|
||||
j="$($c eval -E '{nodes,...}: builtins.mapAttrs (n: v: v.config.system.build.toplevel) nodes')"
|
||||
$c exec -- '[ "$(echo '"'$j'"' | jq -r .$(hostname))" = "$(readlink /run/current-system)" ]'
|
||||
'';
|
||||
|
||||
in
|
||||
|
|
Loading…
Reference in a new issue