Files
nixverse/nodes/hosts/common/scripts/upgrade-diff.nix
2025-06-29 07:09:49 -04:00

10 lines
279 B
Nix

{ 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;
};
}