diff --git a/nodes/hosts/common/configuration.nix b/nodes/hosts/common/configuration.nix index c9cf2c4..6d0306e 100644 --- a/nodes/hosts/common/configuration.nix +++ b/nodes/hosts/common/configuration.nix @@ -5,6 +5,7 @@ ./programs/general.nix ./programs/git.nix ./programs/kde.nix + ./scripts/upgrade-diff.nix ./services/desktopmanager.nix ./services/displaymanager.nix ]; diff --git a/nodes/hosts/common/scripts/upgrade-diff.nix b/nodes/hosts/common/scripts/upgrade-diff.nix new file mode 100644 index 0000000..83695dc --- /dev/null +++ b/nodes/hosts/common/scripts/upgrade-diff.nix @@ -0,0 +1,9 @@ +{ lib, pkgs, ... }: { + system.activationScripts.postUserActivation = { + text = '' + ${pkgs.nvd}/bin/nvd --nix-bin-dir=${pkgs.nix}/bin diff /run/current-system "$systemConfig" + ''; + } // lib.optionalAttrs pkgs.stdenv.isLinux { + supportsDryActivation = true; + }; +}