tvl-depot/users/tazjin/chase-geese/default.nix
Vincent Ambo 823b33664d feat(tazjin/nixos): helper script for mounting GeeseFS
Can't be bothered to make something more automated for now.

Change-Id: Ie245af90c1a62a5988b97d16f86b6567e1ffafd0
Reviewed-on: https://cl.tvl.fyi/c/depot/+/9493
Reviewed-by: tazjin <tazjin@tvl.su>
Tested-by: BuildkiteCI
2023-09-30 21:47:37 +00:00

13 lines
333 B
Nix

# 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
''