Add upgrade-diff script.

This commit is contained in:
jay
2025-06-29 07:09:49 -04:00
parent f05b8143b9
commit 4684be0d80
2 changed files with 10 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
{ lib, pkgs, ... }: {
system.activationScripts.postUserActivation = {
text = ''
${pkgs.nvd}/bin/nvd --nix-bin-dir=${pkgs.nix}/bin diff /run/current-system "$systemConfig"
'';
} // lib.optionalAttrs pkgs.stdenv.isLinux {
supportsDryActivation = true;
};
}