Skip to content

Commit

Permalink
Show diff during home-manager activation
Browse files Browse the repository at this point in the history
  • Loading branch information
alapshin committed Sep 1, 2024
1 parent 590a803 commit dfbc400
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions users/alapshin/home/home.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
pkgs,
lib,
inputs,
isNixOS,
username,
dotfileDir,
Expand Down Expand Up @@ -97,4 +98,8 @@
};
};
};

home.activation.diff = inputs.home-manager.lib.hm.dag.entryAnywhere ''
${pkgs.nvd}/bin/nvd diff $oldGenPath $newGenPath
'';
}

0 comments on commit dfbc400

Please sign in to comment.