core: add activationScript to show closure diff #260

Merged
teutat3s merged 1 commit from closure-diffs into main 2024-11-13 19:47:17 +00:00
Showing only changes of commit e48fe612e2 - Show all commits

View file

@ -11,6 +11,17 @@
permittedInsecurePackages = [ "olm-3.2.16" ];
};
system.activationScripts.diff-closures = {
text = ''
if [[ -e /run/current-system ]]; then
${config.nix.package}/bin/nix store diff-closures \
/run/current-system "$systemConfig" \
--extra-experimental-features nix-command
fi
'';
supportsDryActivation = true;
};
nix = {
# Use default version alias for nix package
package = pkgs.nix;