forked from mirrors_public/oddlama_nix-config
feat: add nvd output to deploy
This commit is contained in:
parent
a32d58cebc
commit
e23d78c214
2 changed files with 5 additions and 0 deletions
|
@ -101,8 +101,12 @@
|
|||
for host in "''${HOSTS[@]}"; do
|
||||
store_path="''${TOPLEVEL_STORE_PATHS["$host"]}"
|
||||
echo "[1;36m Applying [m⚙️ [34m$host[m"
|
||||
prev_system=$(ssh "$host" -- readlink /nix/var/nix/profiles/system)
|
||||
ssh "$host" -- /run/current-system/sw/bin/nix-env --profile /nix/var/nix/profiles/system --set "$store_path"
|
||||
ssh "$host" -- "$store_path"/bin/switch-to-configuration "$ACTION"
|
||||
if [[ -n "$prev_system" ]]; then
|
||||
ssh "$host" -- nvd diff "$prev_system" "$store_path"
|
||||
fi
|
||||
time_next
|
||||
echo "[1;32m Applied [m✅ [34m$host[m [90min ''${T_LAST}s[m"
|
||||
done
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue