fix: don't hardcode nvd

This commit is contained in:
oddlama 2024-02-26 14:57:53 +01:00
parent 2270b10b33
commit 124e1c289f
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A

View file

@ -1,6 +1,8 @@
{ {
writeShellApplication,
bc, bc,
lib,
nvd,
writeShellApplication,
}: let }: let
deploy = writeShellApplication { deploy = writeShellApplication {
name = "deploy"; name = "deploy";
@ -107,7 +109,7 @@
ssh "$host" -- "$store_path"/bin/switch-to-configuration "$ACTION" \ ssh "$host" -- "$store_path"/bin/switch-to-configuration "$ACTION" \
|| echo "Error while activating new system" >&2 || echo "Error while activating new system" >&2
if [[ -n "$prev_system" ]]; then if [[ -n "$prev_system" ]]; then
ssh "$host" -- nvd --color always diff "$prev_system" "$store_path" || true ssh "$host" -- ${lib.getExe nvd} --color always diff "$prev_system" "$store_path" || true
fi fi
time_next time_next
echo " Applied  $host in ''${T_LAST}s" echo " Applied  $host in ''${T_LAST}s"