mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2024-11-15 13:23:11 +01:00
10 lines
281 B
Nix
10 lines
281 B
Nix
{ config, ... }:
|
|
{
|
|
system.activationScripts.report-nixos-changes = ''
|
|
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
|
|
'';
|
|
}
|