about summary refs log tree commit diff
path: root/users/tazjin/chase-geese/default.nix
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2023-09-30T13·44+0300
committertazjin <tazjin@tvl.su>2023-09-30T21·47+0000
commit823b33664d909c74a59fdf37b30aba70dfd955ae (patch)
tree5d408be994d0812aa58680aed04a50c62079fff0 /users/tazjin/chase-geese/default.nix
parent9d7e3e4f95288b04c1c5491c0988f6884865c3b4 (diff)
feat(tazjin/nixos): helper script for mounting GeeseFS r/6676
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
Diffstat (limited to 'users/tazjin/chase-geese/default.nix')
-rw-r--r--users/tazjin/chase-geese/default.nix13
1 files changed, 13 insertions, 0 deletions
diff --git a/users/tazjin/chase-geese/default.nix b/users/tazjin/chase-geese/default.nix
new file mode 100644
index 000000000000..3549f758687d
--- /dev/null
+++ b/users/tazjin/chase-geese/default.nix
@@ -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
+''