From 896eb3f99d0d4dc0fed70ed79a7129531570d7ca Mon Sep 17 00:00:00 2001 From: jolheiser Date: Thu, 6 Jul 2023 11:07:17 -0500 Subject: [PATCH] chore: add niv to updates Signed-off-by: jolheiser --- apps/default.nix | 5 ++++- machines/common/default.nix | 7 +++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/apps/default.nix b/apps/default.nix index 6a0619f..ed9a189 100644 --- a/apps/default.nix +++ b/apps/default.nix @@ -1,4 +1,4 @@ -{ pkgs, ... }: { +{ pkgs, config, ... }: { imports = [ ./bat.nix ./bottom.nix @@ -47,6 +47,9 @@ # Personal NUR nur.repos.jolheiser.tmpl ]; + activation.report-changes = config.lib.dag.entryAnywhere '' + ${pkgs.nvd}/bin/nvd --nix-bin-dir=${pkgs.nix}/bin diff $oldGenPath $newGenPath + ''; stateVersion = "22.11"; }; diff --git a/machines/common/default.nix b/machines/common/default.nix index 4139750..07e48a6 100644 --- a/machines/common/default.nix +++ b/machines/common/default.nix @@ -52,6 +52,13 @@ }; }; + system.activationScripts.diff = { + supportsDryActivation = true; + text = '' + ${pkgs.nvd}/bin/nvd --nix-bin-dir=${pkgs.nix}/bin diff /run/current-system "$systemConfig" + ''; + }; + environment = { systemPackages = with pkgs; [ podman podman-compose podman-tui ]; };