tvl-depot/users/tazjin/chase-geese/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
333 B
Nix
Raw Normal View History

# Helpers for mounting GeeseFS into the right place.
{ depot, pkgs, ... }:
pkgs.writeShellScriptBin "chase-geese" ''
set -ueo pipefail
echo "Fetching credentials ..."
eval $(pass show keys/tazjin-geesefs)
echo "Mounting the cloud ..."
mkdir -p ~/cloud
${depot.third_party.geesefs}/bin/geesefs tazjins-files ~/cloud
''