Skip to content

Commit

Permalink
fix: home-manager nvd
Browse files Browse the repository at this point in the history
Signed-off-by: Anthony Rabbito <[email protected]>
  • Loading branch information
anthr76 committed Apr 3, 2024
1 parent fede9ea commit f13e2a6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions home-manager/personalities/global/default.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{ outputs, pkgs, lib, ... }: {
imports = [ ../cli ] ++ (builtins.attrValues outputs.homeManagerModules);
home.activation = {
reportChanges = lib.hm.dag.entryAfter ["writeBoundary"] ''
run ${pkgs.home-manager}/bin/home-manager generations | ${pkgs.coreutils}/bin/head -n 2 | ${pkgs.coreutils}/bin/bin/cut -d' ' -f 7 | ${pkgs.coreutils}/bin/tac | ${pkgs.findutils}/bin/xargs ${pkgs.nvd}/bin/nvd diff
diff = lib.hm.dag.entryBefore [ "installPackages" ] ''
[[ -z "''${oldGenPath:-}" ]] || [[ "$oldGenPath" = "$newGenPath" ]] || \
${pkgs.nvd}/bin/nvd diff "$oldGenPath" "$newGenPath"
'';
};
}

0 comments on commit f13e2a6

Please sign in to comment.