about summary refs log blame commit diff
path: root/users/tazjin/chase-geese/default.nix
blob: 3549f758687ddd295100cadb25d6a11efcb4641e (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
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
''