]>
git.immae.eu Git - perso/Immae/Config/Nix.git/blob - scripts/with_env
3 if [ -z "$SOPS_VARS_FILE" ]; then
4 echo "Variable SOPS_VARS_FILE is needed with a path to the sops variables"
9 TEMP
=$(mktemp -d /tmp/XXXXXX-nixops-files)
18 sops
-d $SOPS_VARS_FILE | yq
-r .ssl_keys.nix_repository
> $TEMP/id_ed25519
20 cat > $TEMP/ssh_config
<<EOF
22 IdentityFile $TEMP/id_ed25519
24 export SSH_CONFIG_FILE
="$TEMP/ssh_config"
25 export SSH_IDENTITY_FILE
="$TEMP/id_ed25519"