🐛 don't always init chezmoi

This commit is contained in:
2024-10-03 21:46:45 -04:00
parent d9b0c54edc
commit 732720117d
2 changed files with 15 additions and 13 deletions

View File

@ -16,7 +16,9 @@
activation.chezmoi = lib.hm.dag.entryAfter [ "installPackages" ] ''
export PATH="${pkgs.git}/bin:$PATH"
$DRY_RUN_CMD ${pkgs.chezmoi}/bin/chezmoi init --apply walkah/dotfiles
if [ ! -d $HOME/.local/share/chezmoi ]; then
$DRY_RUN_CMD ${pkgs.chezmoi}/bin/chezmoi init --apply walkah/dotfiles
fi
'';
stateVersion = "24.05";