more fixups

This commit is contained in:
Barrett Ruth 2026-02-11 14:42:25 -05:00
parent 44d03fb8ad
commit 831806c2dc
Signed by: barrett
GPG key ID: A6C96C9349D2FC81
6 changed files with 21 additions and 31 deletions

View file

@ -26,8 +26,10 @@ in
home.activation.cloneNixConfig = lib.hm.dag.entryAfter [ "createDirectories" ] ''
if [ ! -d "${repoDir}" ]; then
$DRY_RUN_CMD mkdir -p "$(dirname "${repoDir}")"
$DRY_RUN_CMD ${pkgs.git}/bin/git clone https://github.com/barrettruth/nix-config.git "${repoDir}" || true
run mkdir -p "$(dirname "${repoDir}")"
if ! run ${pkgs.git}/bin/git clone https://github.com/barrettruth/nix-config.git "${repoDir}" 2>&1; then
echo "WARNING: could not clone nix-config (network may not be ready)"
fi
fi
'';