🔧 chezmoi update

This commit is contained in:
2024-11-21 18:48:25 -05:00
parent be94d1a35a
commit 2f90fe4b5e
2 changed files with 28 additions and 43 deletions

View File

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