1
0
Fork 0
selfhostblocks/_disnix/nix-pass.sh

10 lines
167 B
Bash
Executable file

#!/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"