Home

dotnix @main - refs - log -
-
https://git.jolheiser.com/dotnix.git
My nix dotfiles
tree log patch
chore: add niv to updates Signed-off-by: jolheiser <john.olheiser@gmail.com>
Signature
-----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEgqEQpE3xoo1QwJO/uFOtpdp7v3oFAmSm5rUACgkQuFOtpdp7 v3qXrg/9Ed/SPzuYPGNgFTNYqzL+6sraF6ypyFBjqP8rw7spl19HX0xV3UVmTO8R Bi02LbMDFEpFXxtt8D4PFKN5RvDZ48Zh8VOtW+ML+cJtsZHM0HDUy5FxLBlor9am JRSrWNgo2Piqq+0+MBec6CV26/1KoUS0G5eSYB9gpX5SVf5nqCUVnReetW2Kams0 BrDPw3S1QPhohE7iNGfmh1zE8s7zGPg6G5xj8v/HOop+lef1n1mwfyGeudXjSF/Q ffuqRAU6ZgAthk/RPzBowX9R0kCongNP3lWirRfuqqVqkdf77W5p9sJs1uNObmPn 4ShhwrntnC3xP3PRK5J+orDuzMzvJCPFZtP5ctuBMTEmq1SwcXcMUUys98+eSbXF hXKWTsTrROIn070KS/O4ujGyQ1fpD5dxwyqGopSE92JL6AVX3m6zUAI9k/QiKEYB PXM6ordovt1kWdJV/iSWop08c0mbKbmkMlIESeIGi8LEl8IaR4OuC+edCFESYyRE gHA3e4CkfHNnHrUDdWBPh0XomIS1Mi+6n4AFFkm2eak7TUZevBTb3jw6cN3HMD3A Y2hlaa//T96xVoUbGL2ojYBMQdsDXzhf9Z2BVuF8i8xyqZaEduTBCqfiD7GvTeAn buel+czHGSXPmngzcecCMXKibScVixnPZZeY2CdjBIKnflR2o1M= =AmHJ -----END PGP SIGNATURE-----
jolheiser <john.olheiser@gmail.com>
1 year ago
2 changed files, 11 additions(+), 1 deletions(-)
M apps/default.nix -> apps/default.nix
diff --git a/apps/default.nix b/apps/default.nix
index 6a0619f71fb1017f051bfa0f5703e0d0facc6e1a..ed9a189f9b81030cac05f7107ea2fc6d4a4660c1 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";
   };
 
M machines/common/default.nix -> machines/common/default.nix
diff --git a/machines/common/default.nix b/machines/common/default.nix
index 4139750e86519c29d9e406cddd88c1e4d59a9a8b..07e48a6c14b4fea9f69e4fbe67a5eac1741d5c71 100644
--- a/machines/common/default.nix
+++ b/machines/common/default.nix
@@ -52,6 +52,13 @@       auto-optimise-store = true;
     };
   };
 
+  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 ];
   };