nixos-config/shared/activation.nix

10 lines
281 B
Nix
Raw Normal View History

2023-07-30 19:41:51 +02:00
{ config, ... }:
2023-05-16 09:51:30 +02:00
{
system.activationScripts.report-nixos-changes = ''
2023-07-30 19:41:51 +02:00
if [ -e /run/current-system ] && [ -e $systemConfig ]; then
echo System package diff:
${config.nix.package}/bin/nix store diff-closures /run/current-system $systemConfig || true
fi
2023-05-16 09:51:30 +02:00
'';
}