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 <noreply@anthropic.com>
This commit is contained in:
ediblerope 2026-04-13 11:41:23 +01:00
parent e0bb392da6
commit 7088f1d68e

View file

@ -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
];
}