1
0
Fork 0
nixos-config/home-manager/roles/nvd.nix
2021-07-04 23:56:46 +02:00

13 lines
267 B
Nix

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