]> git.immae.eu Git - perso/Immae/Config/Nix.git/blobdiff - nixops/scripts/with_env
Squash changes containing private information
[perso/Immae/Config/Nix.git] / nixops / scripts / with_env
diff --git a/nixops/scripts/with_env b/nixops/scripts/with_env
deleted file mode 100755 (executable)
index c570ccf..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/usr/bin/env bash
-
-if [ -z "$NIXOPS_ENV_LOADED" ]; then
-  echo "Please load the environment with direnv"
-  exit 1;
-fi
-
-umask 0077
-TEMP=$(mktemp -d /tmp/XXXXXX-nixops-files)
-chmod go-rwx $TEMP
-
-finish() {
-  rm -rf "$TEMP"
-}
-
-trap finish EXIT
-
-sops -d secrets/vars.yml | yq -r .ssl_keys.nix_repository > $TEMP/id_ed25519
-
-export SSH_IDENTITY_FILE="$TEMP/id_ed25519"
-
-"$@"