f1aa5edb55
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>
13 lines
320 B
Nix
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
|
|
''
|