diff options
Diffstat (limited to 'nixops/scripts/with_env')
-rwxr-xr-x | nixops/scripts/with_env | 8 |
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 | ||
16 | trap finish EXIT | 16 | trap finish EXIT |
17 | 17 | ||
18 | # pass cannot "just" list files in a directory without showing a tree :( | 18 | sops -d secrets/vars.yml | yq -r .ssl_keys.nix_repository > $TEMP/id_ed25519 |
19 | files=$(pass ls Nixops/files | sed -e '1d' -e 's/^.* //') | ||
20 | 19 | ||
21 | for file in $files; do | ||
22 | pass show "Nixops/files/$file" > $TEMP/$file | ||
23 | done | ||
24 | |||
25 | export NIX_PATH="privateFiles=$TEMP:$NIX_PATH" | ||
26 | export SSH_IDENTITY_FILE="$TEMP/id_ed25519" | 20 | export SSH_IDENTITY_FILE="$TEMP/id_ed25519" |
27 | 21 | ||
28 | "$@" | 22 | "$@" |