Fix undefined variable when deployed in NixOS

This commit is contained in:
2026-05-15 19:55:18 +00:00
parent 28a2a91d93
commit 080cd5b1cc

View File

@@ -21,7 +21,10 @@
'';
home.activation.report-changes = lib.hm.dag.entryAnywhere ''
# oldGenPath can be undefined with home-manager used as part of NixOS config
if [ -n "''${oldGenPath+x}" ]; then
${pkgs.nvd}/bin/nvd diff $oldGenPath $newGenPath
fi
'';
programs.git = {