home-manager: show package diff at activation

This commit is contained in:
Trolli Schmittlauch 2024-06-11 22:44:40 +02:00
parent baa0dd00f6
commit 4861e06380

View file

@ -146,4 +146,10 @@
home.sessionVariables = {
EDITOR = "nvim";
};
home.activation.reportChanges = config.lib.dag.entryAnywhere ''
if [[ -v oldGenPath ]]; then
run nix store diff-closures $oldGenPath $newGenPath
fi
'';
}