1
0
Fork 0
nixos-config/home-manager/roles/nvd.nix
2022-03-08 03:19:09 +01:00

16 lines
279 B
Nix

{
config,
pkgs,
lib,
...
}:
with lib; let
inherit (config.lib) dag;
in {
home.activation.report-changes = dag.entryAnywhere ''
if [[ -n "$oldGenPath" && "$oldGenPath" != "$newGenPath" ]]; then
${pkgs.nvd}/bin/nvd diff $oldGenPath $newGenPath
fi
'';
}