fix path for git usage by chezmoi

This commit is contained in:
Tyler Starr 2024-09-29 09:18:01 -07:00
parent f92c6e6b5b
commit 697c2897c2

View File

@ -18,7 +18,10 @@ in {
# Optionally apply chezmoi dotfiles with home-manager activation
home-manager.users.${user} = lib.mkIf cfg.apply {
home.activation.chezmoi = home-manager.lib.hm.dag.entryAfter [ "installPackages" ] ''
_saved_path=$PATH
PATH="${pkgs.git}/bin:$PATH"
run ${pkgs.chezmoi}/bin/chezmoi apply --force
PATH=$_saved_path
'';
};
};