Merge pull request 'core: add activationScript to show closure diff' (#260) from closure-diffs into main
Reviewed-on: #260 Reviewed-by: hensoko <hensoko@noreply.git.pub.solar>
This commit is contained in:
commit
b41edf0cfb
|
@ -11,6 +11,17 @@
|
||||||
permittedInsecurePackages = [ "olm-3.2.16" ];
|
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 = {
|
nix = {
|
||||||
# Use default version alias for nix package
|
# Use default version alias for nix package
|
||||||
package = pkgs.nix;
|
package = pkgs.nix;
|
||||||
|
|
Loading…
Reference in a new issue