823b33664d
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
13 lines
333 B
Nix
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
|
|
''
|