From 7088f1d68eb8408fe40b15c99dbab41600f20e67 Mon Sep 17 00:00:00 2001 From: ediblerope Date: Mon, 13 Apr 2026 11:41:23 +0100 Subject: [PATCH] Add nvd package diff to update alias The update alias now builds first, shows a readable diff of added/removed/upgraded packages via nvd, then switches. Co-Authored-By: Claude Opus 4.6 --- common.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common.nix b/common.nix index 18b1fc8..8e61c9f 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 switch --flake github:ediblerope/nixos-config"; + 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"; clean = "sudo nix-collect-garbage -d"; ll = "ls -alh"; clear = "command clear"; @@ -85,5 +85,6 @@ environment.systemPackages = with pkgs; [ git localsend + nvd ]; }