Files
nix-files/modules/persist/stores/private/gocryptfs-private
2024-09-10 00:02:03 +00:00

8 lines
218 B
Plaintext
Executable File

#!/usr/bin/env nix-shell
#!nix-shell -i bash -p bash -p gocryptfs
pass_file=/run/gocryptfs/private.key
pass_str=$(cat "$pass_file")
rm "$pass_file"
echo "$pass_str" | exec gocryptfs -nosyslog -passfile /dev/fd/0 "$@"