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
|
for host in "''${HOSTS[@]}"; do
|
||||||
store_path="''${TOPLEVEL_STORE_PATHS["$host"]}"
|
store_path="''${TOPLEVEL_STORE_PATHS["$host"]}"
|
||||||
echo "[1;36m Applying [m⚙️ [34m$host[m"
|
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" -- /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"
|
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
|
time_next
|
||||||
echo "[1;32m Applied [m✅ [34m$host[m [90min ''${T_LAST}s[m"
|
echo "[1;32m Applied [m✅ [34m$host[m [90min ''${T_LAST}s[m"
|
||||||
done
|
done
|
||||||
|
|
|
@ -15,6 +15,7 @@ lib.optionalAttrs (!minimal) {
|
||||||
killall
|
killall
|
||||||
ncdu
|
ncdu
|
||||||
neofetch
|
neofetch
|
||||||
|
nvd
|
||||||
rage
|
rage
|
||||||
rclone
|
rclone
|
||||||
ripgrep
|
ripgrep
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue