home-manager: show package diff at activation
This commit is contained in:
parent
baa0dd00f6
commit
4861e06380
|
@ -146,4 +146,10 @@
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
EDITOR = "nvim";
|
EDITOR = "nvim";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
home.activation.reportChanges = config.lib.dag.entryAnywhere ''
|
||||||
|
if [[ -v oldGenPath ]]; then
|
||||||
|
run nix store diff-closures $oldGenPath $newGenPath
|
||||||
|
fi
|
||||||
|
'';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue