1
0
Fork 0
nixos-config/home-manager/roles/nvd.nix

13 lines
267 B
Nix
Raw Normal View History

2021-04-17 16:12:20 +00:00
{ config, pkgs, lib, ... }:
with lib;
let
dag = config.lib.dag;
in
{
2021-07-04 21:17:16 +00:00
home.activation.report-changes = dag.entryAnywhere ''
2021-07-04 21:56:46 +00:00
if [[ -n "$oldGenPath" && "$oldGenPath" != "$newGenPath" ]]; then
${pkgs.nvd}/bin/nvd diff $oldGenPath $newGenPath
fi
2021-07-04 21:17:16 +00:00
'';
2021-04-17 16:12:20 +00:00
}