From e156d798620c24616ca2e8a5dee307c6fd3b96bd Mon Sep 17 00:00:00 2001 From: ediblerope Date: Mon, 13 Apr 2026 11:47:06 +0100 Subject: [PATCH] Show nvd package diff after switch completes Saves the old system path before switching so nvd can compare old vs new after everything else finishes. Co-Authored-By: Claude Opus 4.6 --- common.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.nix b/common.nix index 8e61c9f..366c131 100644 --- a/common.nix +++ b/common.nix @@ -74,7 +74,7 @@ # Shell aliases (work in both bash and fish) environment.shellAliases = { - update = "sudo nixos-rebuild build --flake github:ediblerope/nixos-config && nvd diff /run/current-system result && sudo nixos-rebuild switch --flake github:ediblerope/nixos-config"; + update = "OLD_SYSTEM=$(readlink /run/current-system) && sudo nixos-rebuild build --flake github:ediblerope/nixos-config && sudo nixos-rebuild switch --flake github:ediblerope/nixos-config && nvd diff $OLD_SYSTEM /run/current-system"; clean = "sudo nix-collect-garbage -d"; ll = "ls -alh"; clear = "command clear";