From 4861e06380be5d2148e222321e2b988555fb0b79 Mon Sep 17 00:00:00 2001 From: Trolli Schmittlauch Date: Tue, 11 Jun 2024 22:44:40 +0200 Subject: [PATCH] home-manager: show package diff at activation --- home/common.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/home/common.nix b/home/common.nix index 31d5887..46cf0cf 100644 --- a/home/common.nix +++ b/home/common.nix @@ -146,4 +146,10 @@ home.sessionVariables = { EDITOR = "nvim"; }; + + home.activation.reportChanges = config.lib.dag.entryAnywhere '' + if [[ -v oldGenPath ]]; then + run nix store diff-closures $oldGenPath $newGenPath + fi + ''; }