Files
config/users/pbsds/home/profiles/update-diff.nix

13 lines
346 B
Nix

{ config, pkgs, ... }:
{
# nvd: https://discourse.nixos.org/t/nvd-simple-nix-nixos-version-diff-tool/12397
# module from https://infosec.exchange/@wyndon/110662698348958506
home.activation.diff-update = config.lib.dag.entryAnywhere ''
if [[ -v oldGenPath ]]; then
${pkgs.nvd}/bin/nvd diff $oldGenPath $newGenPath
fi
'';
}