#!/usr/bin/env nix-shell
#!nix-shell -i bash -p sane-scripts.private-unlock
# unlock the ~/private store, run some command, and then re-lock the store
set -x
external_cmd=$@
sane-private-unlock
$external_cmd
exec sane-private-lock