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
This commit is contained in:
Vincent Ambo 2023-09-30 16:44:33 +03:00 committed by tazjin
parent 9d7e3e4f95
commit 823b33664d
2 changed files with 14 additions and 0 deletions

View file

@ -0,0 +1,13 @@
# 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
''

View file

@ -21,6 +21,7 @@ in
# programs from the depot
(with depot; [
users.tazjin.screenLock
users.tazjin.chase-geese
config.tazjin.emacs
third_party.agenix.cli
third_party.josh