Show diff for home-manager

This commit is contained in:
Andreas Zweili 2023-07-07 13:47:23 +02:00
parent 0c3facc696
commit 8a2853caaf
1 changed files with 4 additions and 1 deletions

View File

@ -1,4 +1,4 @@
{ inputs, pkgs, ... }:
{ config, inputs, pkgs, ... }:
{
imports = [
"${inputs.self}/home-manager/modules"
@ -10,6 +10,9 @@
};
home = {
activation.report-changes = config.lib.dag.entryAnywhere ''
${pkgs.nix}/bin/nix store diff-closures $oldGenPath $newGenPath || true
'';
sessionPath = [ "$HOME/node_modules/.bin" ];
sessionVariables = {
NIX_PATH = "nixpkgs=${inputs.nixpkgs}";