mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-02-18 10:47:31 -08:00
fix path for git usage by chezmoi
This commit is contained in:
parent
f92c6e6b5b
commit
697c2897c2
@ -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
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user