1
0
Fork 0
dotfiles/system/shared/show-update-changelog.nix

11 lines
278 B
Nix
Raw Normal View History

2023-05-14 19:24:51 +00:00
{ config, ... }:
2023-05-14 19:24:19 +00:00
{
system.activationScripts.show-update-changelog = ''
2023-05-14 19:24:51 +00:00
if [[ -e /run/current-system ]]; then
echo "[show-update-changelog] Changelog"
${config.nix.package}/bin/nix store diff-closures /run/current-system "$systemConfig" || true
fi
2023-05-14 19:24:19 +00:00
'';
}