Show package diffs at activation.

This commit is contained in:
2024-08-31 07:45:03 +01:00
parent 0986574628
commit 7f88b6b731
2 changed files with 11 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
{ pkgs, config, lib, ... }:
{
system.activationScripts.show-update-changelog = ''
if [[ -e /run/current-system ]]; then
echo "[show-update-changelog] System Changelog"
${lib.getExe pkgs.nvd} --nix-bin-dir='${config.nix.package}/bin' diff /run/current-system "$systemConfig"
fi
'';
}