2023-09-30 15:44:33 +02:00
|
|
|
# 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
|
2024-06-08 16:11:41 +02:00
|
|
|
${pkgs.geesefs}/bin/geesefs tazjins-files ~/cloud
|
2023-09-30 15:44:33 +02:00
|
|
|
''
|