aboutsummaryrefslogtreecommitdiff
path: root/nixops/scripts/with_env
diff options
context:
space:
mode:
Diffstat (limited to 'nixops/scripts/with_env')
-rwxr-xr-xnixops/scripts/with_env8
1 files changed, 1 insertions, 7 deletions
diff --git a/nixops/scripts/with_env b/nixops/scripts/with_env
index f8e5537..c570ccf 100755
--- a/nixops/scripts/with_env
+++ b/nixops/scripts/with_env
@@ -15,14 +15,8 @@ finish() {
15 15
16trap finish EXIT 16trap finish EXIT
17 17
18# pass cannot "just" list files in a directory without showing a tree :( 18sops -d secrets/vars.yml | yq -r .ssl_keys.nix_repository > $TEMP/id_ed25519
19files=$(pass ls Nixops/files | sed -e '1d' -e 's/^.* //')
20 19
21for file in $files; do
22 pass show "Nixops/files/$file" > $TEMP/$file
23done
24
25export NIX_PATH="privateFiles=$TEMP:$NIX_PATH"
26export SSH_IDENTITY_FILE="$TEMP/id_ed25519" 20export SSH_IDENTITY_FILE="$TEMP/id_ed25519"
27 21
28"$@" 22"$@"