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
|
{ 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)
|
||||||
|
'';
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,6 +14,7 @@
|
||||||
dnsutils
|
dnsutils
|
||||||
nvd
|
nvd
|
||||||
gh
|
gh
|
||||||
|
nix
|
||||||
|
|
||||||
# TODO Move
|
# TODO Move
|
||||||
nil
|
nil
|
||||||
|
|
Reference in a new issue