aboutsummaryrefslogtreecommitdiffstats
path: root/modules/security/gopass/gopass-sync-init.sh
diff options
context:
space:
mode:
authorArpit Chakladar <arpitchakladar+git@gmail.com>2026-09-02 22:07:14 +0530
committerArpit Chakladar <arpitchakladar+git@gmail.com>2026-09-02 22:07:14 +0530
commit5ac48b36e56d652d55272b77a6752558e630b3c7 (patch)
tree1442be6c6e475258248332cb35bbd7866551c7f0 /modules/security/gopass/gopass-sync-init.sh
parent171c30e79fe34ce2dcf411b9db0f9cf64616a0c7 (diff)
downloadhome-manager-config-5ac48b36e56d652d55272b77a6752558e630b3c7.tar.gz
home-manager-config-5ac48b36e56d652d55272b77a6752558e630b3c7.zip
feat(security/gopass): manage SSH keys from the gopass store
Diffstat (limited to 'modules/security/gopass/gopass-sync-init.sh')
-rw-r--r--modules/security/gopass/gopass-sync-init.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/security/gopass/gopass-sync-init.sh b/modules/security/gopass/gopass-sync-init.sh
index 6fe4f8a..c7767f9 100644
--- a/modules/security/gopass/gopass-sync-init.sh
+++ b/modules/security/gopass/gopass-sync-init.sh
@@ -1,5 +1,14 @@
#!/usr/bin/env bash
+# gopass-sync-init
+#
+# Prepare the gopass password store directory for git-backed syncing.
+#
+# This runs during home-manager activation. It ensures the store directory
+# exists, initializes it as a git repository if it is not already one, and adds
+# the configured git remote as `origin` if no remote is set yet. It is a no-op
+# (and thus safe to rerun) when the store is already set up.
+
STORE_DIR="@@PASSWORD_STORE_DIR@@"
mkdir -p "$STORE_DIR"