From cf16f3e9b0682d0b9f59508403aacf0ac8d2cc0d Mon Sep 17 00:00:00 2001 From: Don Harper Date: Mon, 24 Feb 2025 07:54:39 -0600 Subject: [PATCH] forgot file --- hosts/pi-server/upgrade-diff.nix | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 hosts/pi-server/upgrade-diff.nix diff --git a/hosts/pi-server/upgrade-diff.nix b/hosts/pi-server/upgrade-diff.nix new file mode 100644 index 0000000..1903966 --- /dev/null +++ b/hosts/pi-server/upgrade-diff.nix @@ -0,0 +1,8 @@ +{ pkgs, ... }: { + system.activationScripts.diff = { + supportsDryActivation = true; + text = '' + ${pkgs.nvd}/bin/nvd --nix-bin-dir=${pkgs.nix}/bin diff /run/current-system "$systemConfig" + ''; + }; +}