add activation script showing updated packages

This commit is contained in:
Rouven Seifert 2023-07-29 17:09:01 +02:00
parent 7c89904bd7
commit 88ae35d945
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09

View file

@ -6,6 +6,13 @@
'';
};
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
'';
# Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8";
console = {