tvl-depot/users/tazjin/chase-geese/default.nix
Florian Klink f1aa5edb55 chore(third_party/geesefs): move to expression in nixpkgs
This now exists in nixpkgs, and a more recent version of it.

Change-Id: I51fe038ba9459587952028f77e97b48212d13e74
Reviewed-on: https://cl.tvl.fyi/c/depot/+/11762
Autosubmit: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
2024-06-10 20:50:29 +00:00

13 lines
320 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
${pkgs.geesefs}/bin/geesefs tazjins-files ~/cloud
''