modules/autoupdate: add package diff to activationScripts

This commit is contained in:
Astro 2022-04-19 20:03:59 +02:00
parent e9c011cd87
commit a485d30c0b
1 changed files with 9 additions and 0 deletions

View File

@ -59,6 +59,15 @@
randomizedDelaySec = "6h";
};
# Always show a diff when activating a new system
system.activationScripts.diff-system = {
supportsDryActivation = true;
text = ''
echo System package diff:
${config.nix.package}/bin/nix store diff-closures /run/current-system $systemConfig
'';
};
environment.systemPackages = [ (
# Provide a manual updating script that fetches the latest
# updated+built system from Hydra