Show system closure diff on activation
This commit is contained in:
parent
78f4579556
commit
8a339c51a2
|
@ -95,6 +95,13 @@
|
|||
acceptTerms = true;
|
||||
email = "security@sbruder.de";
|
||||
};
|
||||
|
||||
system.activationScripts.diff = ''
|
||||
[ -L /run/current-system ] && ${pkgs.nixUnstable}/bin/nix \
|
||||
--experimental-features 'nix-command' \
|
||||
store \
|
||||
diff-closures /run/current-system "$systemConfig"
|
||||
'';
|
||||
}
|
||||
(lib.mkIf (!config.sbruder.full) {
|
||||
# Adapted from nixpkgs/nixos/modules/profiles/minimal.nix
|
||||
|
|
Loading…
Reference in a new issue