added nvd diff after activating

This commit is contained in:
Rouven Seifert 2023-05-16 09:51:30 +02:00
parent 11b1eb654d
commit e57560d0b5
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09
4 changed files with 16 additions and 4 deletions

7
shared/activation.nix Normal file
View file

@ -0,0 +1,7 @@
{ lib, pkgs, ... }:
{
system.activationScripts.report-nixos-changes = ''
PATH=$PATH:${lib.makeBinPath [ pkgs.nvd pkgs.nix ]}
nvd diff $(ls -dv /nix/var/nix/profiles/system-*-link | tail -2)
'';
}

View file

@ -2,6 +2,7 @@
{
programs.nix-index-database.comma.enable = true;
imports = [
./activation.nix
./caches.nix
./gpg.nix
./sops.nix