@cryptotaxi247 / infra-1 / commits / 69da334d

hydra-mirrorr: clone over SSH

I updated the remote on the existing repo manually.

Martin Weinelt committed May 15, 2026 at 00:41 UTC 69da334d33727dfad684b3e3990d8e86c4dbd0d7
1 file changed +3 -2
modules/hydra-mirror.nix
+3 -2
@@ -22,11 +22,12 @@ let
22 script = ''
23 # Hardcoded in channel scripts.
24 dir=/home/hydra-mirror/nixpkgs-channels
25 +
26 + export GIT_SSH_COMMAND="ssh -i $CREDENTIALS_DIRECTORY/hydra-mirror-git-credentials -o IdentitiesOnly=yes"
27 if ! [[ -e $dir ]]; then
26 - git clone --bare https://github.com/NixOS/nixpkgs.git $dir
28 + git clone --bare git@github.com:NixOS/nixpkgs.git $dir
29 fi
30 GIT_DIR=$dir git config remote.origin.fetch '+refs/heads/*:refs/remotes/origin/*'
29 - export GIT_SSH_COMMAND="ssh -i $CREDENTIALS_DIRECTORY/hydra-mirror-git-credentials -o IdentitiesOnly=yes"
31
32 # FIXME: use IAM role.
33 export AWS_ACCESS_KEY_ID=$(sed 's/aws_access_key_id=\(.*\)/\1/ ; t; d' ${config.age.secrets.hydra-mirror-aws-credentials.path})