feat: add nvd diff to all builds

This commit is contained in:
truxnell 2024-03-19 12:41:40 +11:00
parent 0a9652fd90
commit 3dda6367b1
2 changed files with 8 additions and 0 deletions

View file

@ -1,5 +1,6 @@
{ inputs { inputs
, lib , lib
, pkgs
, ... , ...
}: { }: {
nix = { nix = {
@ -13,4 +14,10 @@
options = "--delete-older-than 5d"; options = "--delete-older-than 5d";
}; };
}; };
# Enable printing changes on nix build etc with nvd
system.activationScripts.report-changes = ''
PATH=$PATH:${lib.makeBinPath [ pkgs.nvd pkgs.nix ]}
nvd diff $(ls -dv /nix/var/nix/profiles/system-*-link | tail -2)
'';
} }

View file

@ -14,6 +14,7 @@
dnsutils dnsutils
nvd nvd
gh gh
nix
# TODO Move # TODO Move
nil nil