modules/autoupdate: add package diff to activationScripts
This commit is contained in:
parent
e9c011cd87
commit
a485d30c0b
|
@ -59,6 +59,15 @@
|
||||||
randomizedDelaySec = "6h";
|
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 = [ (
|
environment.systemPackages = [ (
|
||||||
# Provide a manual updating script that fetches the latest
|
# Provide a manual updating script that fetches the latest
|
||||||
# updated+built system from Hydra
|
# updated+built system from Hydra
|
||||||
|
|
Loading…
Reference in New Issue
Block a user