feat: add nvd diff to all builds
This commit is contained in:
parent
0a9652fd90
commit
3dda6367b1
2 changed files with 8 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
{ inputs
|
||||
, lib
|
||||
, pkgs
|
||||
, ...
|
||||
}: {
|
||||
nix = {
|
||||
|
@ -13,4 +14,10 @@
|
|||
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)
|
||||
'';
|
||||
}
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
dnsutils
|
||||
nvd
|
||||
gh
|
||||
nix
|
||||
|
||||
# TODO Move
|
||||
nil
|
||||
|
|
Reference in a new issue