about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--users/tazjin/chase-geese/default.nix13
-rw-r--r--users/tazjin/nixos/modules/physical.nix1
2 files changed, 14 insertions, 0 deletions
diff --git a/users/tazjin/chase-geese/default.nix b/users/tazjin/chase-geese/default.nix
new file mode 100644
index 0000000000..3549f75868
--- /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
+''
diff --git a/users/tazjin/nixos/modules/physical.nix b/users/tazjin/nixos/modules/physical.nix
index b1984a1d39..476598035e 100644
--- a/users/tazjin/nixos/modules/physical.nix
+++ b/users/tazjin/nixos/modules/physical.nix
@@ -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