]>
git.immae.eu Git - perso/Immae/Config/Nix.git/blob - nixops/scripts/with_env
3 if [ -z "$NIXOPS_ENV_LOADED" ]; then
4 echo "Please load the environment with direnv"
9 TEMP
=$(mktemp -d /tmp/XXXXXX-nixops-files)
18 # pass cannot "just" list files in a directory without showing a tree :(
19 files
=$(pass ls Nixops/files | sed -e '1d' -e 's/^.* //')
21 for file in $files; do
22 pass show
"Nixops/files/$file" > $TEMP/$file
25 export NIX_PATH
="privateFiles=$TEMP:$NIX_PATH"
26 export SSH_IDENTITY_FILE
="$TEMP/id_ed25519"