From 823b33664d909c74a59fdf37b30aba70dfd955ae Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sat, 30 Sep 2023 16:44:33 +0300 Subject: 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 Tested-by: BuildkiteCI --- users/tazjin/chase-geese/default.nix | 13 +++++++++++++ users/tazjin/nixos/modules/physical.nix | 1 + 2 files changed, 14 insertions(+) create mode 100644 users/tazjin/chase-geese/default.nix (limited to 'users') 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 +'' diff --git a/users/tazjin/nixos/modules/physical.nix b/users/tazjin/nixos/modules/physical.nix index b1984a1d3972..476598035e09 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 -- cgit 1.4.1