add activation script showing updated packages
This commit is contained in:
parent
7c89904bd7
commit
88ae35d945
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue