1
0
Fork 0
selfhostblocks/nix-pass.sh

11 lines
167 B
Bash
Raw Normal View History

#!/usr/bin/env bash
# nix-pass.sh
set -euo pipefail
f=$(mktemp)
trap "rm $f" EXIT
pass show "$1" | head -c -1 > $f
nix-instantiate --eval -E "builtins.readFile $f"