From 697c2897c2f41286b870ef236ee68e09094136d2 Mon Sep 17 00:00:00 2001 From: Tyler Starr Date: Sun, 29 Sep 2024 09:18:01 -0700 Subject: [PATCH] fix path for git usage by chezmoi --- provision/modules/programs/chezmoi.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/provision/modules/programs/chezmoi.nix b/provision/modules/programs/chezmoi.nix index 137e00b3..da625025 100644 --- a/provision/modules/programs/chezmoi.nix +++ b/provision/modules/programs/chezmoi.nix @@ -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 ''; }; };