1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-11 07:10:39 +02:00

feat: add nvd output to deploy

This commit is contained in:
oddlama 2023-10-15 02:32:59 +02:00
parent a32d58cebc
commit e23d78c214
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
2 changed files with 5 additions and 0 deletions

View file

@ -101,8 +101,12 @@
for host in "''${HOSTS[@]}"; do
store_path="''${TOPLEVEL_STORE_PATHS["$host"]}"
echo " Applying  $host"
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 " Applied  $host in ''${T_LAST}s"
done

View file

@ -15,6 +15,7 @@ lib.optionalAttrs (!minimal) {
killall
ncdu
neofetch
nvd
rage
rclone
ripgrep